Re: enquiry about defrag

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

 



Hi,

You need to compile the latest version of filefrag, it has some fixes
by Liu Bo wrt to that. However, even then, filefrag may not report the
correct the extent count for btrfs. According to filefrag_fiemap(), it
tries to check whether physical extents are consecutive on disk and
then considers them as a single extent. For btrfs this may not always
be true, because logically the extents might not be consecutive, even
though they are consecutive on disk. xfstest 281 fails for me because
of this. (filefrag -v, however, seems to show BTRFS extents
correctly).
For me the best way is to check the output of btrfs-debug-tree.

Alex.




On Sun, Sep 9, 2012 at 3:30 AM, Jan Steffens <jan.steffens@xxxxxxxxx> wrote:
> On Sun, Sep 9, 2012 at 2:03 AM, ching <lsching17@xxxxxxxxx> wrote:
>> 2. Is there any command for the fragmentation status of a file/dir ? e.g. fragment size, number of fragments.
>
> Use the "filefrag" command, part of e2fsprogs.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux