For 'xfsrestore -x', a few more tests are necessary because we hit an issue at the cumulative mode while developing this feature: https://lore.kernel.org/linux-xfs/e61ae295-a331-d36a-cae1-646022dc2a6e@xxxxxxxxx/ This fix adds a few tests to run 'xfsrestore -x' to the multi-level dumps with various file operations referencing existing tests. Before adding the tests, a helper function to create a fake root is added. changes since v2: - Rename the new helper to `_scratch_xfs_create_fake_root` because this function only work for SCRATCH_DEV. - Skip a test if the helper fails to create a wrong root following existing behaviors. changes since v1: - Introduce the new helper to xfs/557 - Elaborate the background of this fix - Add one more test for multi-level dumps based on xfs/065 Hironori Shiina (2): xfs: add helper to create fake root inode xfs: test xfsrestore on multi-level dumpfiles with wrong root common/xfs | 40 ++ tests/xfs/545 | 31 +- tests/xfs/554 | 35 +- tests/xfs/557 | 31 +- tests/xfs/567 | 125 ++++ tests/xfs/567.out | 1517 +++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/568 | 213 +++++++ tests/xfs/568.out | 849 +++++++++++++++++++++++++ 8 files changed, 2758 insertions(+), 83 deletions(-) create mode 100644 tests/xfs/567 create mode 100644 tests/xfs/567.out create mode 100644 tests/xfs/568 create mode 100644 tests/xfs/568.out -- 2.39.1