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

Re: (reiserfs) Re: Fwd: Reiserfs and shlibs



On Tue 07 Dec 1999, Russell Coker wrote:
> 
> ReiserFS intentionally orders directories by design.  Other file systems such
> as SGI's XFS and the Veritas VXfs also index directories, I am not certain if
> they also store files in the order that they were created in.  I would
> appreciate it if someone could run some tests on XFS or Veritas file systems
> to test these things.

I did a simple test on a Veritas file system on a Solaris system:

# mkdir 55555
# mkdir 33333
# mkdir 77777
# mkdir 11111
# mkdir 99999
# od -c .
0000000  \0  \f  \0  \0  \0  \0   P      \0 020  \0 005  \0  \0   5   5
0000020   5   5   5  \0  \0  \0   S 375  \0 020  \0 005  \0  \0   3   3
0000040   3   3   3  \0  \0  \0   S 377  \0 020  \0 005  \0  \0   7   7
0000060   7   7   7  \0  \0  \0   T 001  \0 020  \0 005  \0  \0   1   1
0000100   1   1   1  \0  \0  \0   T 002  \0 034  \0 005  \0  \0   9   9
0000120   9   9   9  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000140

So stored in order of creation, as least in a virgin directory.
I then did this:

# rmdir 33333
# mkdir aa
# od -c .
0000000  \0 020  \0  \0  \0  \0   P      \0 020  \0 005  \0  \0   5   5
0000020   5   5   5  \0  \0  \0   T 003  \0 020  \0 002  \0  \0   a   a
0000040   3   3   3  \0  \0  \0   S 377  \0 020  \0 005  \0  \0   7   7
0000060   7   7   7  \0  \0  \0   T 001  \0 020  \0 005  \0  \0   1   1
0000100   1   1   1  \0  \0  \0   T 002  \0 034  \0 005  \0  \0   9   9
0000120   9   9   9  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0000140

So, an empty slot is reused (similar to ext2).

PS: no difference if creating files instead of directories.

Paul Slootman
-- 
home:       paul@wurtel.demon.nl http://www.wurtel.demon.nl/
work:       paul@murphy.nl       http://www.murphy.nl/
debian:     paul@debian.org      http://www.debian.org/
isdn4linux: paul@isdn4linux.de   http://www.isdn4linux.de/


Reply to: