Richard Fish, mused, then expounded:
> 
> IMO xfs_fsr is a little brain-damaged in it's operation (won't
> consolidate free space, requires enough space to fully copy a
> fragmented file, etc).  It is probably not worth running if you have a
> sensible partition setup.
>

It was never designed to work like a WinXX defragger.  The man page states
exactly what it will do, and consolidating space is not part of it's
design.

>From the man page -

     fsr_xfs improves the organization of mounted filesystems.  The
     reorganization algorithm operates on one file at a time, compacting or
     otherwise improving the layout of the file extents (contiguous blocks of
     file data).

and - 

     When invoked with no arguments fsr_xfs reorganizes all regular files in
     all mounted filesystems.  fsr_xfs makes many cycles over /etc/mtab each
     time making a single pass over each XFS filesystem.  Each pass goes
     through and selects files that have the largest number of extents.  It
     attempts to defragment the top 10% of these files on each pass.

and -

     fsr_xfs improves the layout of extents for each file by copying the
     entire file to a temporary location and then interchanging the data
     extents of the target and temporary files in an atomic manner. This
     method requires that enough free disk space be available to copy any
     given file and that the space be less fragmented then the original file.
     It also requires the owner of the file to have enough remaining filespace
     quota to do the copy on systems running quotas.  fsr_xfs generates a
     warning message if space is not sufficient to improve the target file.

Note - IRIX it's fsr_xfs and Linux it's xfs_fsr.

Thus it may not, as you point out, perform the operations that you want it too.

xfs_fsr/fsr_xfs was designed to deal with multi-gigabyte and terabyte files.  
Not
to free up space in small partitions.

Bob
-  
-- 
[email protected] mailing list

Reply via email to