Partition rotating scheme


enough space
in ÔactiveÕ
for next
datafile
?
yes
EXIT
no

ÔemptyÕ
exists
?
no
oldest ÔpostsiloÕ
to
ÔemptyÕ

ÔactiveÕ
exists
?
no
ÔemptyÕ
to
ÔactiveÕ
yes (??)
oldest ÔpresiloÕ
to
ÔgopresiloÕ


both
Ô.temp1Õ and
Ô.temp2Õ
exists
?
ÔgopresiloÕ
to
ÔpresiloÕ
yes
postinsert ÔpresiloÕ
no
ÔgopresiloÕ
to
Ô.temp*Õ
wait for
at least one
.temp*
disappear


at least 2
ÔpresiloÕs
exists
?
no
ERROR
EXIT


both
Ô.temp1Õ and
Ô.temp2Õ
exists
?
yes
yes
oldest ÔpresiloÕ
to
Ô.temp*Õ
no
clonput2


All
files
written
?


Ô.temp*Õ
to
ÔgopresiloÕ
no
Ô.temp*Õ
to
ÔpostsiloÕ
yes
preinsert
ÔpostsiloÕ
Call script ÔemptyÕ (actually must cleanup !!)