]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: validate CoW extent size hint on rtinherit directories
authorDarrick J. Wong <djwong@kernel.org>
Thu, 15 Aug 2024 18:58:31 +0000 (11:58 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 16 Aug 2024 21:57:44 +0000 (14:57 -0700)
commit1cc132b23865d4f4fd04bf9440649880b69605ee
treecd858d248c65c504fc7f0c246c28fa4b86a11e9d
parent296941ee64822f779ab02cea608305807e6addba
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>
repair/dinode.c