xfs
[Top] [All Lists]

Re: Strage values from FIBMAP on holes or after end of file

To: Steve Lord <lord@xxxxxxx>
Subject: Re: Strage values from FIBMAP on holes or after end of file
From: Constantin Loizides <Constantin.Loizides@xxxxxx>
Date: Fri, 03 Aug 2001 18:04:30 +0200
Cc: xfs-list <linux-xfs@xxxxxxxxxxx>
Organization: Innovative Software AG
References: <200108031544.f73FixI10433@jen.americas.sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi Steve
> 
> Result for 48425 files 3044 dirs: Int: 0.873 Ext: 1.000 1.000 1.000 1.000 - 
> 1.000 - Path 1.000 1.010
> Mean Internal frag: 0.873
> Mean External frag: 1.000
> Mean Frag. Path 1.000

> Now, the xfs_db frag command is looking at the extent information for all
> files, and comparing it with the ideal case. So a file which has a physical
> hole in the middle has an ideal extent count of 2. If a directory or symlink
> fits in the inode it has no fragmentation it does not show up in the output,
> this probably explains the count differences in the output, there are 3044
> directories in this filesystem, but only 1218 of them are using space
> outside the inode.
> 
Actually fibmap is only working on regular files. (So the directories
are just 
counted for fun.) Hardlinks are treated as regular files, symlinks are
not followed.

But you say, xfs_db frag found a fragment value of 0.02 % that is 0.9998
in my way of counting
which is rounded to 1.000. I changed fibmaps final output to show 6
digits.
Please, give it another try
http://www.informatik.uni-frankfurt.de/~loizides/reiserfs/

Constantin


<Prev in Thread] Current Thread [Next in Thread>