Joerg Sommer <[EMAIL PROTECTED]> writes:
> begin Andrew M. Bishop <[EMAIL PROTECTED]> wrote:
> > [snip patch changing use of readdir() function]
> >
> > Can you tell me more about the operating system and file system that
> > you are using WWWOFFLE on.
>
> OS: Linux 2.6.0-test9
> FS: ext3
>
> Maybe this is since I added the dir_index feature to ext3, but I'm not
> sure.
>
> > I have never seen a file system where the first two entries in the
> > directory structure are not "." and "..", yours is the first. This is
> > a little shortcut that has been in WWWOFFLE for a long time and it has
> > always worked. It appears in many more places than just in purge.c
> > and they all need to be fixed.
[snip test program and results that show '.' and '..' are not the
first directory entries]
> As you can see it involves the whole filesystem.
>
> I created a new ext3 filesystem. Without the dir_index feature I get the
> order as you expect. But with the dir_index feature I get a skewed order.
> So I would say this is a result of the dir_index feature of ext3.
This sort of makes sense, I imagine that this feature changes the way
that the directory index is stored on the disk so that it is faster to
access lots of files.
I have changed all occurences of this in the WWWOFFLE code and it will
be in the next version.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html