]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: adjust xfs_bmap_add_attrfork for metadir
authorDarrick J. Wong <djwong@kernel.org>
Wed, 29 May 2024 04:11:02 +0000 (21:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:13:16 +0000 (17:13 -0700)
commitd4645b9ab3d5bb7bb6bf1915f885e727a2ca2141
tree0a21b89660d64ebd5b39891ff65ef0556d0daf47
parent15c41d0318b02ea0719a82a7dfe48f0d5b2a2261
xfs: adjust xfs_bmap_add_attrfork for metadir

Online repair might use the xfs_bmap_add_attrfork to repair a file in
the metadata directory tree if (say) the metadata file lacks the correct
parent pointers.  In that case, it is not correct to check that the file
is dqattached -- metadata files must be not have /any/ dquot attached at
all.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_attr.c
libxfs/xfs_bmap.c