tag name | defrag-freespace_2021-12-31 (841d28577c96058d9a739442e403c776b2e68754) |
tag date | 2021-12-31 10:44:47 -0800 |
tagged by | Darrick J. Wong <djwong@kernel.org> |
tagged object | commit 5d94188fe1... |
download | xfs-linux-defrag-freespace_2021-12-31.tar.gz |
---|
xfs: defragment free space
These patches contain experimental code to enable userspace to defragment
the free space in a filesystem. Two purposes are imagined for this
functionality: clearing space at the end of a filesystem before
shrinking it, and clearing free space in anticipation of making a large
allocation.
The first patch adds a new fallocate mode that allows userspace to
allocate free space from the filesystem into a file. The goal here is
to allow the filesystem shrink process to prevent allocation from a
certain part of the filesystem while a free space defragmenter evacuates
all the files from the doomed part of the filesystem.
The second patch amends the online repair system to allow the sysadmin
to forcibly rebuild metadata structures, even if they're not corrupt.
Without adding an ioctl to move metadata btree blocks, this is the only
way to dislodge metadata.
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmHPT58ACgkQ+H93GTRK
tOvnTxAAmcFMYwu/lX0BjL0EeG93NVmN5mZDKLL2NhLYZtTn/5owHUGNw1eamynD
ikyLHNX8vJA4gnNuCzm0xnQniMk7MinHgMntw+whYmxdhK6kHu8hjrVFeSJCZqse
ukbHPKxX77ulxn6PqAJnD9YxujDztQ9otyNXeO+KTArEi7LEzy/NO2yKjrzqStic
P7j0pMC3iAQSj4EwUhJOIuex11ECFgHKVgD99+jElZq3D6+3mvdKlITYC6pN/77V
k1XipD4eflCVwtWinCvcD2ozlBGF5rPEzf4gNtA5pAxo+9gaRQmHmgMlxMXBAzUk
8YkZ9FyB6XsmZ823KwknVMjR5+z+/jlx65waGLAhAUDElRnKo0Iyl/r/jeRDHFR5
FWuQni+pd6HuVRIYJgvvbopdCiGZacj7uuYSBvSdtNFFbElPBEZGzf1E+fPnwXSr
sIjSSA7jfVJ3hSPdFh6Di+VpzHvRLxAHWaaYqy84ULbraGxj8KHCpgSXlK9SlGZn
4HmT3AVqsvQYRdmyko2+bbPjcY9cO8k+IgG9FnXuKF+ZZWatE0e3LYSd0tsiU26G
WZHA9x9uG8LQvMa2/kHQy16BI1xFkqOWvGwARvRKeuixB3dm4mp77tGvppw/VMBR
kpftsBmKOsMQ2nh7bt4qvxC6Cpm9vgV8uk2BlchB8WJazdZwJss=
=xi4I
-----END PGP SIGNATURE-----