xfs_fsr

API—OSS—FREE—DOCS1/5
XF4.7#22 of 22
—Web—Windows—MacoutLinux—Android—iOS

Ranked in Disk Defragmentation Software ·Free plan

About

xfs_fsr is ranked #22 of 22 in disk defragmentation software on Inferse. It runs on Linux. There is a free plan.

Compared on disk defragmentation software

Free plan
Yesxfs.org

Facts

Purpose
xfs_fsr reorganizes mounted XFS filesystems by improving the layout of file extents one file at a time.man7.org · 4 Oct 2026
Selection
With no arguments, it selects files with the largest numbers of extents and attempts to defragment the top 10% on each pass.man7.org · 4 Oct 2026
Time limit
The default run lasts up to two hours and records where it stopped so it can resume later.man7.org · 4 Oct 2026
Targeting
It can be run on named filesystems or individual files, making one pass through each specified target.man7.org · 4 Oct 2026
How it works
It copies a file to a temporary location and atomically interchanges the data extents of the original and temporary files.man7.org · 4 Oct 2026
Disk space requirement
Reorganization requires enough free disk space to copy the target file, with space less fragmented than the original file.man7.org · 4 Oct 2026
Quota requirement
On systems using quotas, the file owner must have enough remaining file space quota for the copy.man7.org · 4 Oct 2026
Mapped files
It does not operate on files that are currently mapped in memory.man7.org · 4 Oct 2026
No-defrag flag
Files marked no-defrag are skipped, and the flag can be set or cleared with xfs_io's chattr command.man7.org · 4 Oct 2026
Access requirement
The filesystem must be mounted read-write; entries without the rw option are skipped.man7.org · 4 Oct 2026
Operational caution
The manual says system partitions generally do not need xfs_fsr and cautions that moving bootloader files can make a system unbootable unless lilo is rerun before reboot.man7.org · 4 Oct 2026
Project and support
The manual identifies xfs_fsr as part of the xfsprogs project and directs bug reports to the linux-xfs mailing list.man7.org · 4 Oct 2026

Best xfs_fsr alternatives

See all 12

Where it ranks on Inferse

Sources