]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: validate CoW extent size hint on rtinherit directories
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:22:06 +0000 (10:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:16:02 +0000 (09:16 -0800)
commit256d9dd3d44c71c5b729dd28be5c1b5e7126f118
treee194edc4ac2c432977d4a3ed84eeac345680d611
parent593709052fb533e833f6f51d860618680695851f
xfs_repair: validate CoW extent size hint on rtinherit directories

XFS allows a sysadmin to change the rt extent size when adding a rt
section to a filesystem after formatting.  If there are any directories
with both a cowextsize hint and rtinherit set, the hint could become
misaligned with the new rextsize.  Offer to fix the problem if we're in
modify mode and the verifier didn't trip.  If we're in dry run mode,
we let the kernel fix it.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/dinode.c