Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Is readdir ever deterministic?

by ncw (Friar)
on Sep 17, 2001 at 23:22 UTC ( #112934=note: print w/ replies, xml ) Need Help??

in reply to Is readdir ever deterministic?

Does there exist a platform where readdir returns . and .. in other than the first two return values?

Hmm, good question! If any filing system would do this it would be reiserfs under linux. Reiserfs uses a hashed directory structure rather than the linear directory structure as used by most other fs. Reiser returns directory entries in hash order (a familiar concept to perl programmers!).

I just tried it and the answer is reiserfs always puts "." and ".." first! The hash order isn't as random as a perl hash either which is interesting too.

Comment on Re: Is readdir ever deterministic?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://112934]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2015-12-02 02:03 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (31 votes), past polls