Re: (reiserfs) Re: any chance we could dump the 64k subdirectory limit before 2.4 ships?

From: Xuan Baldauf (technik--reiserfs@exmail.de)
Date: Mon May 29 2000 - 16:57:05 EST


Hans Reiser wrote:

> Chris Mason wrote:
>
> > In 3.6.X, we have two stat data structs. struct stat_data_v1 is for using
> > files from 3.5.x, and it has a 16 bit link count. struct stat_data is for
> > new files and directories, and it has the 32 bit link count.
> >
> > You only get the new format stat data on new partitions, or on 3.5.x disks
> > that have been mounted -o conv.
> >
> > -chris
>
> So is the following the right solution?
>
> for stat(), if (i_nlink > 64k-1 && on architecture where n_link_t is 16 bits)
> return 64k-1
> for stat64() return the correct value

If you make it a compile time option (return ENLINK on the one hand, or give
incorrect nlink on the other hand), I think everybody will be happy! :o) Only "du"
and co. might get into some troubles|produce incorrect results with that compile
time option, but this is far better than simply not allowing it, isn't it?

>
>
> This may still be viewed by Alan as something that should wait for after 2.4.0,
> and I definitely won't disagree if he says so.
>
> Hans

Xuân. :o)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:23 EST