]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: complain about bad file mapping records in the ondisk bmbt
authorDarrick J. Wong <djwong@kernel.org>
Wed, 31 May 2023 09:01:21 +0000 (11:01 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:50 +0000 (10:27 +0200)
commit830c99b1869205e1ca8979fc31d24cff8d56db22
tree25ad7aa49084537af54241acbb6c385fae18061a
parent7e7856ceee84ea52363416ad7dfa933679c8250f
xfs: complain about bad file mapping records in the ondisk bmbt

Source kernel commit: 6a3bd8fcf9afb47c703cb268f30f60aa2e7af86a

Similar to what we've just done for the other btrees, create a function
to log corrupt bmbt records and call it whenever we encounter a bad
record in the ondisk btree.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h
libxfs/xfs_inode_fork.c