tag name | repair-tempfiles_2022-10-14 (3daea25310c1801624f29c99bf0e828ad2b8ad80) |
tag date | 2022-10-14 14:18:57 -0700 |
tagged by | Darrick J. Wong <djwong@kernel.org> |
tagged object | commit 400d029a61... |
xfs: create temporary files for online repair
As mentioned earlier, the repair strategy for file-based metadata is to
build a new copy in a temporary file and swap the file fork mappings
with the metadata inode. We've built the atomic extent swap facility,
so now we need to build a facility for handling private temporary files.
The first step is to teach the filesystem to ignore the temporary files.
We'll mark them as PRIVATE in the VFS so that the kernel security
modules will leave it alone. The second step is to add the online
repair code the ability to create a temporary file and reap extents from
the temporary file after the extent swap.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmNJ0kEACgkQ+H93GTRK
tOu3Mw/+KdoA9nvYyRUWnUzSpJQQvauLYhXhQnbc7+tVtw3o08eSbxpurlA71X+O
7AFmr4uvLAl5p0E9rjIP7TdK3+JyFJGB+7bNfeb8/bXJFm4hYxqtLodAT+Sz7GHm
UVc7u+nP9eWYYBdy2pmklDnL8eGgpmUpTVn5nuPD9fEfHlRIh/ZDRHEE/FO44fHm
N14DUUqJdYgAfnRpo8XzuOFzYaZlRED0SkEuAH9uP/xYzn/bMCiUES1VT1Q8YdDg
hIfs6Sq+dVlWycd0GvpqE2ZHFB2xjX1jA/5neA9espb6dYx2P913qwmqvUUflnmc
1REUyUsYOceRW5vmWjNv35yP196g9WSnUiAmLNjBusbwcFRedWH5nljJ0eqDylSk
kiB9xfWk6Qob/BCWJC6Hy0F083WDq4lLZ5u8HWAUm07UakC3KD7h5ORAobm9leeC
H/0lrBk8Zgf0r0UobKTFsg2Ii0VIZFzk/Jst2YNq2dZKFAjTR81rF2nxwx5Af3fp
+6tE0O7+k2llShYaG6QK1CaCEV1Z6jfClR+AOgtq10RWaOhNVoyIUp5FVhbjz3ta
95B/ufx5SrjDXpr0tQ3xxDlOo5TvRGxDnmI9RJ1tGY6pPOn/adUNdj9uon6GYSu+
uEviXupPRXPhcJW0sjsrdy+vRpic1QmRazaqL9VsDYiGDVpD9uE=
=n/J7
-----END PGP SIGNATURE-----