]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: don't recreate /quota metadir if there are no quota inodes
authorDarrick J. Wong <djwong@kernel.org>
Fri, 21 Mar 2025 16:31:31 +0000 (09:31 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 31 Mar 2025 09:45:45 +0000 (11:45 +0200)
commit28db545be050f4571e9bf642133c1b969091f82c
tree72e8c4b82f8bb17b572847eb64ab0e168e784eb6
parente6caefbdcf10b3c74d26c02c454c9e4134850f95
xfs_repair: don't recreate /quota metadir if there are no quota inodes

If repair does not discover even a single quota file, then don't have it
try to create a /quota metadir to hold them.  This avoids pointless
repair failures on quota-less filesystems that are nearly full.

Found via generic/558 on a zoned=1 filesystem.

Cc: linux-xfs@vger.kernel.org # v6.13.0
Fixes: b790ab2a303d58 ("xfs_repair: support quota inodes in the metadata directory")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/phase6.c