tag name | defrag-freespace_2021-09-03 (88f0a92dc060d048ef03c3690ec4164e7a99b65d) |
tag date | 2021-09-03 19:42:21 -0700 |
tagged by | Darrick J. Wong <djwong@kernel.org> |
tagged object | commit 55b5b5faf7... |
download | xfs-linux-defrag-freespace_2021-09-03.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+H93GTRKtOsFAmEy3Q0ACgkQ+H93GTRK
tOul0RAAmq9m3jepjlkWekb9P5gn7eWmGT4FRM7vJKCw0eklqMCWGXpcI0ub3/Hv
dDvUQaas6V3yPQZc31wn/eIGUgeiDKMVxI/Xs8iRFYJ4ugLA6aV5YZDofBkBwEtV
3anYYzyIs+LDglH/dplK6iLhd12WhPCtqNszHf2pBWKQUKd2R8RbEP/Va1JyIMll
q6Z9rEccC8fvqcPDsiHKrXVxQ0dhzIXoVxtUu3iEqceJ0JIb48IY7/aIbQLK6nxi
NMs3FL7FgA5a8OxMKG2dNKbDRi1vNmULJcx2draj/VWrF/D46RfrWwquq97egG82
a012lDMGJaj2gXr13HLk0a6Vi3kpir6qwTyix1rzau2n8PnZ+B7z1jNoAnxyI1Lg
t7n//eFEQtIH5LY4ChlA445Ac2QFeSMCuV7D5Qxk4s89VspVtUr6rxd562Ghhm5d
yi1bnQNamtriF46dIf55KCt+DNlDtnAtcQA7nOjr4bWzCX397byN1NB+SRyezdzt
rpJ+/enZLwqacVlq3fss2oRjMw2+TWDq6Gt6fpZAazwILcg9P9HxwjHCPEjykLaL
3V58jdYNas+y0JA0M69B8wqRZsZ/Uqc4NLLfDzmX5JFGCfe9qHDTjWd8/q4HflLX
b1PTtaKFadEiUwX1BWWPK8AGCzAbe+MsLQKhpBFfUDUlEt3AClw=
=7HqA
-----END PGP SIGNATURE-----