]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: create inode pointer verifiers
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 17 Nov 2017 04:11:31 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:31 +0000 (22:11 -0600)
commitbe3bf25c3563d0f1553765b952979b73322a084b
tree80413f1709ced09eaea8724fafdca7ae38d4a0d1
parentb47beff8645297498ba3503a9bcb2c6a21f8b975
xfs: create inode pointer verifiers

Source kernel commit: 91fb9afc0847926ef6ea7695b8125c8fbe7974d6

Create some helper functions to check that inode pointers point to
somewhere within the filesystem and not at the static AG metadata.
Move xfs_internal_inum and create a directory inode check function.
We will use these functions in scrub and elsewhere.

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