Re: [Ext2-devel] Re: [UPDATE] Directory index for ext2

Theodore Tso (tytso@valinux.com)
Tue, 26 Jun 2001 19:49:19 -0400


On Tue, Jun 26, 2001 at 12:25:32AM +0200, Daniel Phillips wrote:
> > This is only true without the COMPAT_DIR_INDEX flag. Since e2fsck _needs_
> > to know about every filesystem feature, it will (correctly) refuse to touch
> > such a system for now. You could "tune2fs -O ^FEATURE_C4 /dev/hdX" to
> > turn of the COMPAT_DIR_INDEX flag and let e2fsck go to town. That will
> > break all of the directory indexes, I believe.
>
> This is what he wants, a workaround so he can fsck. However, the above
> command (on version 1.2-WIP) just gives me:
>
> Invalid filesystem option set: ^FEATURE_C4
>
> Maybe he should just edit the source so it doesn't set the superblock flag
> for now.

I haven't had a chance to analyze the directory index format to see if
an-dirindexing-ignorant e2fsck could do any damage to the index. It's
probably the case as long as the filesystem isn't corrupted, simply
modifying e2fsck to ignore the compatibility flag won't hurt. But
it's certainly not something I would recommend for any kind of
production operation.

- Ted

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