To ensure 'xfsrestore -x' works well, this fix adds a test for 'xfsrestore -x' with multi-level dump files. The '-x' flag corrects a wrong root inode which can be created by problematic xfsdump (v3.1.7 - v3.1.9) because of bulkstat misuse. Before adding the test, a helper function to create a fake root is added. Hironori Shiina (2): xfs: add helper to create fake root inode xfs: test xfsrestore on multi-level dumpfiles with wrong root common/xfs | 38 ++ tests/xfs/545 | 31 +- tests/xfs/554 | 35 +- tests/xfs/560 | 125 ++++ tests/xfs/560.out | 1517 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 1690 insertions(+), 56 deletions(-) create mode 100644 tests/xfs/560 create mode 100644 tests/xfs/560.out -- 2.39.0