Re: [UPDATE] Directory index for ext2

Daniel Phillips
2001-06-20T16:56:15Z

On Wednesday 20 June 2001 16:59, Tony Gale wrote:
> The main problem I have with this is that e2fsck doesn't know how to
> deal with it - at least I haven't found a version that will. This makes
> it rather difficult to use, especially for your root fs.

Good, the file format isn't finalized, this is only recommended for use on a
test partition.

> And, since I used it, and have since stopped using it, I have a problem
> in what all my disk free space disappears over a couple of days - I have
> to run fsck to recover it, were it appears as deleted inodes with zero
> dtime. I can't say for sure that the dir index stuff is at fault though.

It could well be, I'd appreciate any more data you have on that.

> I am currently using 2.4.6-pre3 without the dir patch installed. I am
> using the grsecurity patch though.
>
> I have just upgraded to e2fsprogs-1.21 in the hope of sorting it out. If
> that fails I'll revert to a clean 2.4.6-pre kernel. Other ideas welcome.
>
> -tony
>
> On 31 May 2001 18:13:43 +0200, Daniel Phillips wrote:
> > Changes:
> >
> > - Freshen to 2.4.5
> > - EXT2_FEATURE_COMPAT_DIR_INDEX flag finalized
> > - Break up ext2_add_entry for aesthetic reasons (Al Viro)
> > - Handle more than 64K directories per directory (Andreas Dilger)
> > - Bug fix: new inode no longer inherits index flag (Andreas Dilger)
> > - Bug fix: correct handling of error on index create (Al Viro)
> >
> > To-Do:
> >
> > - More factoring of ext2_add_entry
> > - Fall back to linear search in case of corrupted index
> > - Finalize hash function