]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: move kernel-specific superblock validation out of libxfs
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 Jan 2021 20:59:17 +0000 (15:59 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 7 Jan 2021 20:59:17 +0000 (15:59 -0500)
commit40d3972320116066d9a33a4f89117f75f2476072
tree61ee7b2b99d0a4097c97c814107e9d587bf22048
parentbbf6e32dd12999311ad127438856c7034b9c7914
xfs: move kernel-specific superblock validation out of libxfs

Source kernel commit: 3945ae03d822aa47584dd502ac024ae1e1eb9e2d

A couple of the superblock validation checks apply only to the kernel,
so move them to xfs_fc_fill_super before we add the needsrepair "feature",
which will prevent the kernel (but not xfsprogs) from mounting the
filesystem.  This also reduces the diff between kernel and userspace
libxfs.

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