Re: Ext2 directory index, updated

Daniel Phillips (phillips@bonn-fries.net)
Sun, 4 Nov 2001 23:24:09 +0100


On November 4, 2001 11:09 pm, Christian Laursen wrote:
> Daniel Phillips <phillips@bonn-fries.net> writes:
>
> > ***N.B.: still for use on test partitions only.***
>
> It's the first time, I've tried this patch and I must say, that
> the first impression is very good indeed.
>
> I took a real world directory (my linux-kernel MH folder containing
> roughly 115000 files) and did a 'du -s' on it.
>
> Without the patch it took a little more than 20 minutes to complete.
>
> With the patch, it took less than 20 seconds. (And that was inside uml)
>
>
> However, when I accidentally killed the uml, it left me with an unclean
> filesystem which fsck refuses to touch because it has unsupported features.
>
> Even the latest version does this.
>
> Is there a patch for fsck, that fixes this somewhere?

Ted Ts'o volunteered to do that but I failed to support him with proper
documentation so it hasn't been done yet.

However, it's very easy to get around this, just comment out the part of the
patch that sets the incompat flag. Then the indexed directories will
magically turn back into normal directories the next time you write to them
(it would be very good to give this feature a real-life test :-)

There is an easy way to turn that FEATURE_COMPAT flag back off so you can
fsck, but I don't know it and I should.

Andreas?

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