tag name | dirattr-validate-owners_2024-04-09 (4b1fa73a8c25cf7fb84fe97056b23bf84ba375fd) |
tag date | 2024-04-09 17:16:54 -0700 |
tagged by | Darrick J. Wong <djwong@kernel.org> |
tagged object | commit 4f4ab5a9a0... |
download | xfs-linux-dirattr-validate-owners_2024-04-09.tar.gz |
---|
xfs: set and validate dir/attr block owners [v30.3 08/52]
There are a couple of significant changes that need to be made to the
directory and xattr code before we can support online repairs of those
data structures.
The first change is because online repair is designed to use libxfs to
create a replacement dir/xattr structure in a temporary file, and use
atomic extent swapping to commit the corrected structure. To avoid the
performance hit of walking every block of the new structure to rewrite
the owner number before the swap, we instead change libxfs to allow
callers of the dir and xattr code the ability to set an explicit owner
number to be written into the header fields of any new blocks that are
created. For regular operation this will be the directory inode number.
The second change is to update the dir/xattr code to actually *check*
the owner number in each block that is read off the disk, since we don't
currently do that.
This has been running on the djcloud for months with no problems. Enjoy!
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-----BEGIN PGP SIGNATURE-----
iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZhXadgAKCRBKO3ySh0YR
pt+eAP9Wu+OMYPpUs6qbIPGxa/Z2j8hwijcGNmZkZBgRhRmangD/ZdPqkI+4p4fz
VjLxhvfthjFBC8USkhwIQTEcfnlw8gQ=
=8/5K
-----END PGP SIGNATURE-----