[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A success story with apt and rsync

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.

 - mdz

Reply to: