From: Carlos Maiolino Date: Tue, 6 Aug 2024 13:45:05 +0000 (+0200) Subject: Merge tag 'dirattr-validate-owners-6.10_2024-07-29' of https://git.kernel.org/pub... X-Git-Tag: v6.10.0~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a11b6777b6b9194b269eab55877456fc6f84883;p=thirdparty%2Fxfsprogs-dev.git 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 --- 9a11b6777b6b9194b269eab55877456fc6f84883