On Sun, Jul 06, 2003 at 07:28:09PM -0400, Matt Zimmerman wrote: > On Sun, Jul 06, 2003 at 11:36:34PM +0100, Andrew Suffield wrote: > > > On Sun, Jul 06, 2003 at 05:48:24PM -0400, Theodore Ts'o wrote: > > > Err, no. If the htree (hash tree) indexing feature is turned on for > > > ext2 or ext3 filesystems, they will returned sorted by the hash of the > > > filename --- effectively a random order. (Since the hash also > > > includes a secret, random, per-filesystem secret in order to avoid > > > denial of service attacks by malicious users who might otherwise try > > > to create huge numbers of files containing hash collisions.) > > > > I can only presume this is new or obscure, since everything I tried > > had the traditional behaviour. Can't see how to turn it on, either. > > I believe htree == dir_index, so tune2fs(8) and mke2fs(8) have the answer.
My /home has that enabled and readdir() returns files in creation order. -- .''`. ** Debian GNU/Linux ** | Andrew Suffield : :' : http://www.debian.org/ | Dept. of Computing, `. `' | Imperial College, `- -><- | London, UK
pgpNA07l53T5F.pgp
Description: PGP signature