[prev in list] [next in list] [prev in thread] [next in thread]
List: ext3-users
Subject: Re: something odd with the order of files in a directory (fwd)
From: Andreas Dilger <adilger () sun ! com>
Date: 2009-01-23 22:03:18
Message-ID: 20090123220318.GU3652 () webber ! adilger ! int
[Download RAW message or body]
On Jan 23, 2009 10:19 +0100, Christian Kujau wrote:
> On Fri, 16 Jan 2009, Folkert van Heusden wrote:
>> I then would expect:
>> a.b
>> a.c
>> a.a
>>
>> but instead I get
>> drwxr-xr-x 3 root root 4096 2009-01-16 12:59 ..
>> -rw-r--r-- 1 root root 0 2009-01-16 12:59 a.c
>> -rw-r--r-- 1 root root 0 2009-01-16 12:59 a.b
>> -rw-r--r-- 1 root root 0 2009-01-16 12:59 a.a
>> drwxr-xr-x 2 root root 4096 2009-01-16 12:59 .
>
> Hm, is this reproducible? Which kernel, mount-options, arch?
> Here on 2.6.24/amd64 the "directory order" (GNU/ls -U resp. BSD/ls -f)
> seems to work as expected:
There is no such thing as "directory order" in Unix. It can change at
any time, with the caveat that a single process doing a single readdir()
will get each entry existing at the start and end of readdir exactly once.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic