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

From: Pavel Machek (pavel@suse.cz)
Date: Tue May 30 2000 - 15:03:41 EST


Hi!

> > > 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?

Well, find might get pretty confused, too.
                                                                Pavel

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents me at discuss@linmodems.org

- 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:28 EST