]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: define a new "needrepair" feature
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Nov 2020 19:45:55 +0000 (11:45 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:48:13 +0000 (09:48 -0800)
commit61da243be03cf05ea2917f45fef98dc0e0268549
tree67d9f6c2b7596df0b4a27bae43526068e5d87608
parenta2ff1a4eb9f3b30ac5ac1d89ac0ea1e35480b5b3
xfs: define a new "needrepair" feature

Define an incompat feature flag to indicate that the filesystem needs to
be repaired.  While libxfs will recognize this feature, the kernel will
refuse to mount if the feature flag is set, and only xfs_repair will be
able to clear the flag.  The goal here is to force the admin to run
xfs_repair to completion after upgrading the filesystem, or if we
otherwise detect anomalies.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/libxfs/xfs_format.h
fs/xfs/xfs_super.c