16 bits link count

Joerg Sonnenberger joerg at britannica.bec.de
Sun Mar 13 10:33:06 PST 2005


On Sun, Mar 13, 2005 at 04:07:02PM +0100, Michel Talon wrote:
>
> there was a discussion recently on cubfm about some guy who
> has problems converting his setup from windows to freebsd
> because he has more than 32k directories  stuffed in a directory
> which is not allowed seemingly in all *BSD by the size of the
> link count in inode.h. Apparently this same size is an unsigned integer
> in Linux, so that at least reiserfs can cope with this situation.
> Since *BSD have dirhash, saying that such a vast number of entries is
> bad in a directory is not really adequate. What do you think about
> enlarging this field? Of course i understand that this is incompatible
> with all other BSDs :-(

We can't enlarge it in dinode.h, because that would change the on-disk
structure of UFS. They seem to have forgotten to include that field
in the UFS2 work too. :( 

Joerg





More information about the Users mailing list