[PATCH v5 0/10] fstests: add test coverage for cloned filesystem ids

Anand Jain <[email protected]>
Newsgroups org.kernel.vger.fstests,org.kernel.vger.linux-btrfs,org.kernel.vger.linux-ext4,org.kernel.vger.linux-xfs
Message-ID <[email protected]>
v5:
  XFS supports metadata_uuid, I converted patch 10/10 to a generic
   test. To do this, I moved the in-test helper to common/rc as
   `pre_clone_tune_uuid()`.

  I also verified fanotifywait with SELinux in enforcing mode and
    fixed patch 4/10.

v4:
  https://lore.kernel.org/fstests/[email protected]

v3:
  https://lore.kernel.org/fstests/[email protected]

v2:
  https://lore.kernel.org/fstests/[email protected]

v1:
  https://lore.kernel.org/fstests/[email protected]

This series adds fstests infrastructure and test cases to verify correct
filesystem identity when a filesystem is cloned (block-level copy).
Test covers inotify, fanotify, f_fsid, libblkid, IMA, exportfs file handles
and libblkid tools verify with metadata_uuid.
  New helpers:
  - _mkfs_scratch_sized_clone() helper to create a cloned filesystem
  - _clone_mount_option() helper to apply per-filesystem clone mount options
  - pre_clone_tune_uuid() changes the UUID before the clone

  New tests:
  - inotify and fanotify events are isolated between cloned filesystems
  - f_fsid is unique across cloned filesystem instances
  - libblkid correctly resolves duplicate UUIDs to distinct devices
    with and without metadata_uuid
  - IMA distinct identity for each cloned filesystem
  - exportfs file handles resolve correctly on cloned filesystems

Kernel Patches:
  Requires Btrfs kernel patches for all tests to pass.
   [1] https://lore.kernel.org/linux-btrfs/[email protected]

Anand Jain (10):
  fstests: add _loop_image_create_clone() helper
  fstests: add _clone_mount_option() helper
  fstests: add test for inotify isolation on cloned devices
  fstests: verify fanotify isolation on cloned filesystems
  fstests: verify f_fsid for cloned filesystems
  fstests: verify libblkid resolution of duplicate UUIDs
  fstests: verify IMA isolation on cloned filesystems
  fstests: verify exportfs file handles on cloned filesystems
  fstests: add pre_clone_tune_uuid() healper
  fstests: test UUID consistency for clones with metadata_uuid

 common/config         |   2 +
 common/rc             |  84 ++++++++++++++++++++++++++++
 tests/generic/800     |  89 ++++++++++++++++++++++++++++++
 tests/generic/800.out |   7 +++
 tests/generic/801     | 125 ++++++++++++++++++++++++++++++++++++++++++
 tests/generic/801.out |   7 +++
 tests/generic/802     |  62 +++++++++++++++++++++
 tests/generic/802.out |   7 +++
 tests/generic/803     |  76 +++++++++++++++++++++++++
 tests/generic/803.out |  19 +++++++
 tests/generic/804     | 103 ++++++++++++++++++++++++++++++++++
 tests/generic/804.out |  10 ++++
 tests/generic/805     |  73 ++++++++++++++++++++++++
 tests/generic/805.out |   2 +
 tests/generic/806     |  78 ++++++++++++++++++++++++++
 tests/generic/806.out |  19 +++++++
 16 files changed, 763 insertions(+)
 create mode 100644 tests/generic/800
 create mode 100644 tests/generic/800.out
 create mode 100644 tests/generic/801
 create mode 100644 tests/generic/801.out
 create mode 100644 tests/generic/802
 create mode 100644 tests/generic/802.out
 create mode 100644 tests/generic/803
 create mode 100644 tests/generic/803.out
 create mode 100644 tests/generic/804
 create mode 100644 tests/generic/804.out
 create mode 100644 tests/generic/805
 create mode 100644 tests/generic/805.out
 create mode 100644 tests/generic/806
 create mode 100644 tests/generic/806.out

-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.