]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add a xfs_valid_startblock helper
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Nov 2019 22:16:23 +0000 (17:16 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 15 Nov 2019 22:16:23 +0000 (17:16 -0500)
commit0c1d6bf173a51afd708e6b45d66b2f5655778206
tree6348fbf97f18ad8f2872211168ad861a24eb4421
parent2651b58605bafee4782e38f57302130c5b5a93da
xfs: add a xfs_valid_startblock helper

Source kernel commit: eb77b23b565e7e1d2cc3a7d9e4cc186fb54e81a8

Add a helper that validates the startblock is valid.  This checks for a
non-zero block on the main device, but skips that check for blocks on
the realtime device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
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_bmap.c
libxfs/xfs_bmap.h