]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - repair/bulkload.h
xfs_repair: rebuild block mappings from rmapbt data
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:49 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:28 +0000 (14:06 -0700)
commitb3bcb8f0a8b5763defc09bc6d9a04da275ad780a
treebf27657642d15c5dba108c0cd0aa7251701e96c1
parente88445180ea303cb9ae700061dce9c7d495d40f9
xfs_repair: rebuild block mappings from rmapbt data

Use rmap records to rebuild corrupt inode forks instead of zapping
the whole inode if we think the rmap data is reasonably sane.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
13 files changed:
include/xfs_trans.h
libfrog/util.h
libxfs/libxfs_api_defs.h
libxfs/trans.c
repair/Makefile
repair/agbtree.c
repair/bmap_repair.c [new file with mode: 0644]
repair/bmap_repair.h [new file with mode: 0644]
repair/bulkload.c
repair/bulkload.h
repair/dinode.c
repair/rmap.c
repair/rmap.h