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
|
||||
if lastUsed < endSlot then
|
||||
begin
|
||||
(* if the volume is empty mark the first slot *)
|
||||
if lastUsed = 0 then
|
||||
slotNo := reservedCount
|
||||
else
|
||||
slotNo := lastUsed + 1;
|
||||
|
||||
writeln('Updating directory...');
|
||||
slotNo := lastUsed + 1;
|
||||
getdirslot(volid, slotNo, dirslot, error);
|
||||
if error <> IONoError then
|
||||
begin
|
||||
|
|
@ -119,7 +124,7 @@ begin
|
|||
lastUsed := 0;
|
||||
|
||||
openvolumeid(volid);
|
||||
i := volumeTable[volid].startSlot;
|
||||
i := 0;
|
||||
endSlot := volumeTable[volid].part.dirSize - 1;
|
||||
|
||||
if verbose then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue