mbox series

[v2,0/2] xfs: test xfsrestore on multi-level dumpfiles with wrong root

Message ID 20230112222242.153502-1-shiina.hironori@fujitsu.com (mailing list archive)
Headers show
Series xfs: test xfsrestore on multi-level dumpfiles with wrong root | expand

Message

Hironori Shiina Jan. 12, 2023, 10:22 p.m. UTC
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@gmail.com/
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 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        |   38 ++
 tests/xfs/545     |   31 +-
 tests/xfs/554     |   35 +-
 tests/xfs/557     |   31 +-
 tests/xfs/560     |  125 ++++
 tests/xfs/560.out | 1517 +++++++++++++++++++++++++++++++++++++++++++++
 tests/xfs/561     |  213 +++++++
 tests/xfs/561.out |  849 +++++++++++++++++++++++++
 8 files changed, 2756 insertions(+), 83 deletions(-)
 create mode 100644 tests/xfs/560
 create mode 100644 tests/xfs/560.out
 create mode 100644 tests/xfs/561
 create mode 100644 tests/xfs/561.out