Skip to content

btrfs: functional test cases for tempfsid

Anand Jain fstests linux-btrfs 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest10 patches 5 repliesIn review
  2. v310 patches 13 repliesSuperseded
  3. v210 patches 15 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches19 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10assign SCRATCH_DEV_POOL to an arraycommon/rc+14 -40 replies
2/10btrfs: introduce tempfsid test groupdoc/group-names.txt+1 -00 replies
3/10btrfs: create a helper function, check_fsid(), to verify the tempfsidcommon/btrfs+40 -00 replies
4/10btrfs: verify that subvolume mounts are unaffected by tempfsidtests/btrfs/311 tests/btrfs/311.out+111 -01 reply
5/10btrfs: check if cloned device mounts with tempfsidtests/btrfs/312 tests/btrfs/312.out+97 -01 reply
6/10btrfs: test case prerequisite _require_btrfs_mkfs_uuid_optioncommon/btrfs+11 -00 replies
7/10btrfs: introduce helper for creating cloned devices with mkfscommon/btrfs+23 -00 replies
8/10btrfs: verify tempfsid clones using mkfstests/btrfs/313 tests/btrfs/313.out+68 -01 reply
9/10btrfs: validate send-receive operation with tempfsid.tests/btrfs/314 tests/btrfs/314.out+101 -01 reply
10/10btrfs: test tempfsid with device add, seed, and balancetests/btrfs/315 tests/btrfs/315.out+101 -01 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchFilipe Manana
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/10] btrfs: functional test cases for tempfsid

v4: Do not optimize calling _require_..() due to duplicates at the testcase level.
Fix the failure of btrfs/315 due to changes in the mount command
error output.
btrfs/312 remove unused ret and drop args check in now local func
create_cloned_devices.

v3: Mainly, move the prerequisite checks
_require_btrfs_command inspect-internal dump-super _require_btrfs_mkfs_uuid_option
to the common/btrfs function mkfs_clone() and move
_require_btrfs_command inspect-internal dump-super
to check_fsid() from each individual testcase. A few more changes as in each individual testcase.

v2: Each individual patch has undergone numerous fixes based on the feedback received. Please refer to the individual patches.

This patch set validates the tempfsid feature in Btrfs, testing its functionality and limitations. Also, has one minor bug fix.

Anand Jain (10):
assign SCRATCH_DEV_POOL to an array
btrfs: introduce tempfsid test group
btrfs: create a helper function, check_fsid(), to verify the tempfsid
btrfs: verify that subvolume mounts are unaffected by tempfsid
btrfs: check if cloned device mounts with tempfsid
btrfs: test case prerequisite _require_btrfs_mkfs_uuid_option
btrfs: introduce helper for creating cloned devices with mkfs
btrfs: verify tempfsid clones using mkfs
btrfs: validate send-receive operation with tempfsid.
btrfs: test tempfsid with device add, seed, and balance

 common/btrfs        | 74 ++++++++++++++++++++++++++++++++++++
 common/rc           | 18 +++++++--
 doc/group-names.txt |  1 +
 tests/btrfs/311     | 87 +++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/311.out | 24 ++++++++++++
 tests/btrfs/312     | 78 ++++++++++++++++++++++++++++++++++++++
 tests/btrfs/312.out | 19 ++++++++++
 tests/btrfs/313     | 52 ++++++++++++++++++++++++++
 tests/btrfs/313.out | 16 ++++++++
 tests/btrfs/314     | 78 ++++++++++++++++++++++++++++++++++++++
 tests/btrfs/314.out | 23 ++++++++++++
 tests/btrfs/315     | 91 +++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/315.out | 10 +++++
 13 files changed, 567 insertions(+), 4 deletions(-)
 create mode 100755 tests/btrfs/311
 create mode 100644 tests/btrfs/311.out
 create mode 100755 tests/btrfs/312
 create mode 100644 tests/btrfs/312.out
 create mode 100755 tests/btrfs/313
 create mode 100644 tests/btrfs/313.out
 create mode 100755 tests/btrfs/314
 create mode 100644 tests/btrfs/314.out
 create mode 100755 tests/btrfs/315
 create mode 100644 tests/btrfs/315.out
Signature · 1 line
2.39.3