summaryrefslogtreecommitdiff
tag namerepair-tempfiles_2022-11-09 (f0132c3fe7483676615a793a4b4126516852dfd6)
tag date2022-11-09 19:10:16 -0800
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit e5f2ecdb6a...
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+H93GTRKtOsFAmNsa5gACgkQ+H93GTRK tOvyWBAAlxi6AMWCma8KlJmuIO6HOYZwWjzNqh97t6WeJXH3FkMHBqswROey6O2E nKbp+glcCuALfJ5PywUgAmlclItHpfmlZ5W0BxrPRbPePocbbGFOFmrsP9i5wKaA In51HfDHvi9Sx2eqWWpy0T+YcEQuveocXS6yxdKCr1cSWx35zXHtlH/WLqniIWja Bbji1c2qSJc9mBhJMzVMnBT5dI4T7fcy3m3kLJBfA1T41JgQTtJg0WOPiG8ZP34l w/I9dLPfV/rp9Hzo+IpbuEPyGRa9eCZqwl5kDEEWRDP6IP2/DHoF88vVNFH7pSGi B+qe0z1McGQElyJVWN7LjVoZjrF/SFqnGkMSRf3JWddjM+G7rD7Vce5WCK4nxRng nXjVmit6/jClafXWWSsMQy5JIlTVtP8CwxuHanx0KIW+1h9DF0oYLC4I1hnols1P XpDTO7csdp9tEqZwt4VHqu5Il0zoCRgnGqgD95jB+fSpMcotlvJEHd4y8ZENuvDu 4/oLviSGBu1bqll8QpkCurBOcuww05JhmRtz2/p0+HJflCnpbCACBLlXFGF5/CYB DNn8vbpHZiDLH5umzbyh3vcZWDJquRC9HEunTbJujxu90mIHoi+yqvvrINQGlnh+ NWRFq2i2/Bug2nsSb+yVHP/4zS4/rZNRlETWmlKEC/mK+4UL/8M= =vTLf -----END PGP SIGNATURE-----