]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: btree lookup shouldn't ASSERT on empty btree nodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 28 Jun 2018 20:11:57 +0000 (15:11 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Jun 2018 20:11:57 +0000 (15:11 -0500)
commit0e64ec0d5f0d333500d7d2fcc4520943e87e6220
treeaf7e168a304a5fc1bc436745ccc3ff35a4788083
parent3741f971f3c99d00ee9bb61dded0a1e049045c8b
xfs: btree lookup shouldn't ASSERT on empty btree nodes

Source kernel commit: eeee0d6a9bc93eaa211918c203fde263d44fa20e

If a btree lookup encounters an empty btree node or an empty btree leaf
on a multi-level btree, that's evidence of a corrupt on-disk btree.
Therefore, we should return -EFSCORRUPTED to the upper levels, not an
ASSERT failure.

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_btree.c