tag name | repair-rtsummary_2022-11-09 (5b34a0659b49b434326f6152a6d16eb918c45929) |
tag date | 2022-11-09 19:10:17 -0800 |
tagged by | Darrick J. Wong <djwong@kernel.org> |
tagged object | commit 6f8e90c166... |
xfs: online repair of realtime summaries
We now have all the infrastructure we need to repair file metadata.
We'll begin with the realtime summary file, because it is the least
complex data structure. To support this we need to add three more
pieces to the temporary file code from the previous patchset --
preallocating space in the temp file, formatting metadata into that
space and writing the blocks to disk, and swapping the fork mappings
atomically.
After that, the actual reconstruction of the realtime summary
information is pretty simple, since we can simply write the incore
copy computed by the rtsummary scrubber to the temporary file, swap the
contents, and reap the old blocks.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmNsa5kACgkQ+H93GTRK
tOuLdA/+LksCBpAke5moNraudcZIMZblsxtk6btLmwckILvk6EwaKk6rn/0qU/j/
Sd49+Il8bbK8bRw50TDsT3U/AVOTQA+XHps1kbzGr8h4PqzzI/asDteioszjFt7A
uwiDB2OrVE21lnS4BqLH7IVaCOStrRJbPExOBBtmcDPxCrDXLQwauGN/djoGUdpB
qYcrvZAQGptOfKU4uyrWce/qGGLxswIaTL8urB19FkA1Dz8n+YJnC6EgrAhUu/jn
d9mE9AIz7eZqJ+vhlntLeT9AwyeOJ0/RkYyrzcKPvHPk+mPuZFZzYcUsb/dqExHz
0i0gUUjMo5fn0OLpu6fmh3ROVZYmVZUKyn6A+2pItwbtU2uNd82swaaAutXzE/7x
vUXfdtflPLQNH5VnMz/aJy6ELnLP/UjceXF+asEXHn96ToOiMIMs6wGtnv32Fn8X
y9ToS+Yd352d+tHjIL2HHh1NupHOF/OxjFdLTG4K6qzmrC8Hr6anGyf2BgwXzYz7
3ZbVVoYUzYA7v3Ira3IKLR4pKNHwoGTCWyp4jxZA1VfbMYBEyfZmdKM9Zp1Z5rVV
Q1TGQImfbIwOx2Rfc5lRWos4wg4dVi1g0zItqFsYL9T3L23/2LZ/CYCv53iQBFyc
tcIgGEOnmsb2TPXLPwxaKJSOGnSd8NDP0wuC8cmzWoVVSbyv8wI=
=hPqJ
-----END PGP SIGNATURE-----