reclaim: Bugfix marking last slot on empty volume on reclaim
This commit is contained in:
parent
4ff6129bc3
commit
3f6e16377f
1 changed files with 7 additions and 2 deletions
|
|
@ -62,8 +62,13 @@ begin
|
||||||
begin
|
begin
|
||||||
if lastUsed < endSlot then
|
if lastUsed < endSlot then
|
||||||
begin
|
begin
|
||||||
writeln('Updating directory...');
|
(* if the volume is empty mark the first slot *)
|
||||||
|
if lastUsed = 0 then
|
||||||
|
slotNo := reservedCount
|
||||||
|
else
|
||||||
slotNo := lastUsed + 1;
|
slotNo := lastUsed + 1;
|
||||||
|
|
||||||
|
writeln('Updating directory...');
|
||||||
getdirslot(volid, slotNo, dirslot, error);
|
getdirslot(volid, slotNo, dirslot, error);
|
||||||
if error <> IONoError then
|
if error <> IONoError then
|
||||||
begin
|
begin
|
||||||
|
|
@ -119,7 +124,7 @@ begin
|
||||||
lastUsed := 0;
|
lastUsed := 0;
|
||||||
|
|
||||||
openvolumeid(volid);
|
openvolumeid(volid);
|
||||||
i := volumeTable[volid].startSlot;
|
i := 0;
|
||||||
endSlot := volumeTable[volid].part.dirSize - 1;
|
endSlot := volumeTable[volid].part.dirSize - 1;
|
||||||
|
|
||||||
if verbose then
|
if verbose then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue