summaryrefslogtreecommitdiff
tag namerepair-rtsummary_2022-10-14 (5ad0f399e8b440267390c71f8d395cebd16b08ef)
tag date2022-10-14 14:18:58 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 6c1f2a60eb...
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+H93GTRKtOsFAmNJ0kIACgkQ+H93GTRK tOsv6g/9GVfkCxKqyxihgyNftzLazrMXNAVkkERbEaBcV6WpZa9buFmERQgeRvT1 hsB7dneSIHAb5qp7RChaOJdLzMsmqlI6F6H4tfznrnM5AqpwdJLaOAcmhSuYDcmw d0hRq7g3vRDqbl2FuKi/zG/qM+hN5Km4WwUbZdNSzfRwgGQahPlbQenYxXsVUGkA AHPeYZ6ADi5dGyALq5mQMv7+lq7F3Gd2jpIMQdHzdqpWR466E3Xq4RiJNlS7NZv/ +1ys9DuSLLjDSiXYnMCE6OoytBzp38GQ+CpSI9iYwZSSjLmyjo6loVoIoHeZh3/l zjwalxpbi2PBle0jyY5Q2HaR1tMI1lgjBIA+hvBnA0kOA5kgYTDWQmT2Qo8ysQDK M6pHma1mPBjJrZA8815sNFm8LOhGV91OcxU7R6UXMaZvmKtrhCpiq4IGYR0AJWwV hoeyH0o4rOt7r1tCCefMoQImd79pWrNQeqDZl61l5LKGxKFNcxpF+IHx5uBfe3cd mQJgi/bMKb41lMITpgW6jyyifs5UOhb2aF6kxgqU3cl4bUzcKJR1JsWgc/5vFOZb 7gyK7E+LiA9+GX34w3Twe0Gnyuf0ed3pYURyjrm69Rw4Y2V1q2dsbsvjeP9qOdcy ai92xCpht6D7FzyG5muWSTqZ/29UTe5ZS5ZQjpaIeYATw7peHS8= =DKWE -----END PGP SIGNATURE-----