Re: [Ext2-devel] [rfc] Near-constant time directory index for Ext2

tytso
2001-02-22T23:40:53Z

From: Andreas Dilger <adilger@turbolinux.com>
Date: Thu, 22 Feb 2001 11:16:32 -0700 (MST)

One important question as to the disk format is whether the "." and ".."
interception by VFS is a new phenomenon in 2.4 or if this also happened
in 2.2? If so, then having these entries on disk will be important
for 2.2 compatibility, and you don't want to have different on-disk formats
between 2.2 and 2.4.

Well, you need to have the '.' and '..' there for compatibility if you
for the full backwards compatibility. That's clear.

If you don't care about backwards compatibility, it's important that
there be a way to find the parent directory, but there doesn't have to
be explicit '.' and '..' entries.

So if Daniel is going to try implementing it both ways then that's one
place where the #ifdef's might get a bit more complicated. After it's
done, we should do some benchmarks comparing it both ways; if the
difference is negligible, I'd argue for simply always providing
backwards compatibility. One of the key advantages of ext2/ext3 is its
backwards compatibility, and so if it's not too costly to preserve it
(as I suspect will be the case), we should try to do so.

- Ted