]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor bmap record validation
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Apr 2018 19:46:07 +0000 (14:46 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 18 Apr 2018 19:46:07 +0000 (14:46 -0500)
commit0cf6a3a996001599a4cc6971b09b30c10475314c
treefdaf6413cac703b1eedfebe281e0a69a788f16a2
parent15348e044acf73e93ef04800e3376b3398a41a33
xfs: refactor bmap record validation

Source kernel commit: 30b0984d9117dd14c895265886d34335856b712b

Refactor the bmap validator into a more complete helper that looks for
extents that run off the end of the device, overflow into the next AG,
or have invalid flag states.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
include/libxfs.h
libxfs/libxfs_api_defs.h
libxfs/libxfs_priv.h
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h
libxfs/xfs_bmap_btree.h
libxfs/xfs_inode_fork.c