]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add a xfs_valid_startblock helper
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Dec 2019 00:54:33 +0000 (19:54 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 13 Dec 2019 00:54:33 +0000 (19:54 -0500)
commit14790ed01c2d615cc3c534b597cd1123bc95ad92
tree6348fbf97f18ad8f2872211168ad861a24eb4421
parented110c33ac4f7b2a4d1ec12fdef4132562e9e060
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