]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: introduce xfs_validate_stripe_geometry()
authorGao Xiang <hsiangkao@redhat.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)
commit5e26c7ab6933d0b5e9246139625d59d18a12a7d7
treea750b0c82f1f82d8e649ee033ece1391152cdde4
parent9e68bcae0b097dc3395e99f4a6500a8f1bc57175
xfs: introduce xfs_validate_stripe_geometry()

Source kernel commit: 7bc1fea9d36c78e783ce7d4ad28ad129ebcce435

Introduce a common helper to consolidate stripe validation process.
Also make kernel code xfs_validate_sb_common() use it first.

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