]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: test for fixing wrong root inode number in dump
authorHironori Shiina <shiina.hironori@gmail.com>
Mon, 17 Oct 2022 15:11:51 +0000 (11:11 -0400)
committerZorro Lang <zlang@kernel.org>
Thu, 27 Oct 2022 15:31:15 +0000 (23:31 +0800)
commit1ffa16c57368127e387b474c57b2cc801a98aec7
treeb7543c0d33100da44e7292c8ba2015702957a970
parenta75c5f50584e03ca7862ad51f48efd2d524d1dc5
xfs: test for fixing wrong root inode number in dump

Test '-x' option of xfsrestore. With this option, a wrong root inode
number in a dump file is corrected. A root inode number can be wrong
in a dump created by problematic xfsdump (v3.1.7 - v3.1.9) with
bulkstat misuse. In this test, a corrupted dump file is created by
overwriting a root inode number in a header.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Hironori Shiina <shiina.hironori@fujitsu.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/dump
common/xfs
src/Makefile
src/fake-dump-rootino.c [new file with mode: 0644]
tests/xfs/554 [new file with mode: 0755]
tests/xfs/554.out [new file with mode: 0644]