All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hironori Shiina <shiina.hironori@gmail.com>
To: fstests@vger.kernel.org
Cc: Hironori Shiina <shiina.hironori@fujitsu.com>
Subject: [PATCH v3 0/2] xfs: test xfsrestore on multi-level dumpfiles with wrong root
Date: Mon, 30 Jan 2023 17:56:41 -0500	[thread overview]
Message-ID: <20230130225643.148935-1-shiina.hironori@fujitsu.com> (raw)

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 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


             reply	other threads:[~2023-01-30 22:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 22:56 Hironori Shiina [this message]
2023-01-30 22:56 ` [PATCH v3 1/2] xfs: add helper to create fake root inode Hironori Shiina
2023-01-31 14:11   ` Zorro Lang
2023-01-30 22:56 ` [PATCH v3 2/2] xfs: test xfsrestore on multi-level dumpfiles with wrong root Hironori Shiina
2023-01-31 14:17   ` Zorro Lang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230130225643.148935-1-shiina.hironori@fujitsu.com \
    --to=shiina.hironori@gmail.com \
    --cc=fstests@vger.kernel.org \
    --cc=shiina.hironori@fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.