tag name | defrag-freespace_2023-12-20 (446fef788adbd6a081a05d33077ce4a8fde56b98) |
tag date | 2023-12-20 09:44:30 -0800 |
tagged by | Darrick J. Wong <djwong@kernel.org> |
tagged object | commit a6c2ce3dc1... |
download | xfs-linux-defrag-freespace_2023-12-20.tar.gz |
---|
xfs: defragment free space [61/63]
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.
This has been running on the djcloud for months with no problems. Enjoy!
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-----BEGIN PGP SIGNATURE-----
iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZYMn/gAKCRBKO3ySh0YR
phIEAP9C3HfOttMFWI3YoJPaNuxd29+UXEGoFZcQewnkkLVrmQD+JwDYzoqy9yDC
s5sRkubvw8DxfbVtC+BlELqP7uNxrwI=
=KjnT
-----END PGP SIGNATURE-----