On Thu, 2013-02-28 at 15:35 +0100, Swâmi Petaramesh wrote:
> BTW...
> 
> I'm not even sure that "btrfs filesystem defrag <somefile>" actually
> does anything...
> 
> If I run "filefrag <somefile>" afterwards, it typically shows the same
> number of fragments that it did prior to running defrag...

If you have compression enabled in your system, the files are split up
into smallish extents for the compression blocks. Merely counting the
number of fragments doesn't really give you any useful information - you
have to check if the fragments are contiguous.

Try running "filefrag -v somefile", and compare the 'physical' and
'expected' values to look for gaps between fragments.

-- 
Calvin Walton <[email protected]>

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to