Re: (reiserfs) Re: Fwd: Reiserfs and shlibs
- To: Russell Coker <russell@coker.com.au>
- Cc: Wichert Akkerman <wichert@soil.nl>, reiserfs@devlinux.com, debian-devel@lists.debian.org, riel@nl.linux.org
- Subject: Re: (reiserfs) Re: Fwd: Reiserfs and shlibs
- From: Paul Slootman <paul@wau.mis.ah.nl>
- Date: Wed, 8 Dec 1999 17:27:15 +0100
- Message-id: <[🔎] 19991208172715.C5481@wau.mis.ah.nl>
- Mail-followup-to: Russell Coker <russell@coker.com.au>, Wichert Akkerman <wichert@soil.nl>, reiserfs@devlinux.com, debian-devel@lists.debian.org, riel@nl.linux.org
- In-reply-to: <[🔎] 9912071442040N.00925@lyta>; from russell@coker.com.au on Tue, Dec 07, 1999 at 02:30:10PM +0100
- References: <9912071315170J.00925@lyta> <384D067B.8B0EA3C8@idiom.com> <19991207141830.A12045@liacs.nl> <[🔎] 9912071442040N.00925@lyta>
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: