]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: check and repair quota metadata
authorEric Sandeen <sandeen@redhat.com>
Wed, 23 May 2018 21:30:49 +0000 (16:30 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 23 May 2018 21:30:49 +0000 (16:30 -0500)
commit5857dce9e19aeb69b378c761d18f661897981bf1
tree21aa9e465b3f46bcdf5cdcbc8a15af2c647602e3
parent98c4a01c21b99b13d8aaa406ab15b7424ee5ef9f
xfs_repair: check and repair quota metadata

Today, quota inodes are not checked at all in xfs_repair.  (This is
a little odd, because xfs_check used to do it in process_quota()).

The kernel has quota inode validation and repair routines, but it is
out of the ordinary for the kernel to be doing metadata repair.  And
now that we have metadata verifiers, this also yields a surprisingly
noisy mount if quota inodes are corrupted, even immediately after an
xfs_repair.

So this patch allows xfs_repair to fix the quota inode metadata.

Quotacheck is still left for the kernel.  After a few more releases,
I'll propose removing the repair calls from quotacheck.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/xfs_quota_defs.h
repair/dinode.c
repair/incore.h