]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
Merge tag 'dirattr-validate-owners-6.10_2024-07-29' of https://git.kernel.org/pub...
authorCarlos Maiolino <cem@kernel.org>
Tue, 6 Aug 2024 13:45:05 +0000 (15:45 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 6 Aug 2024 13:45:05 +0000 (15:45 +0200)
commit9a11b6777b6b9194b269eab55877456fc6f84883
treea068da791f40e13226bc8dffce6b2b3bbc46e770
parent19e60c10c009419ca4338edc86a2a22831d388a5
parent7e74984e652fab200bc7319d7c3d90f6ae36be2e
Merge tag 'dirattr-validate-owners-6.10_2024-07-29' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfsprogs-dev into for-next

xfsprogs: set and validate dir/attr block owners [v30.9 04/28]

There are a couple of significatn 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, 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.

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>