Subject: Re: Minimum swap size
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 05/20/2003 14:28:20
>> [fsck]
> You should then be able to (for each cylinder group):
> - traverse the inode array and remember the blocks that are
>   a) directories
>   b) allocation maps
> - traverse the directory blocks to check the reference counts
> - traverse the alocation maps to find further maps and allocated blocks

Not quite.

Inodes may refer to blocks that are in other cylinder groups.  This
means that you can't know, before having scanned all cgs, which blocks
in the current cg should be allocated, much less which ones belong to
directories.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B