Skip to content

btrfs-progs: tests: Introduce run_check_mount_test_dev wrapper for mount loop device in old system

Zhao Lei linux-btrfs 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 1 replyApplied

Changes in v2 from the cover letter

1: Use string for mount option instead of string array. 2: Include "run_check $SUDO_HELPER" into wrapper function. Both suggested by: David Sterba <[email protected]>

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: tests: Fix mount fail of 013-extent-tree-rebuildtests/common tests/fsck-tests/013-extent-tree-rebuild/test.sh+28 -21 reply
2/2btrfs-progs: tests: Use mount_test_dev for misc-tests/007-subvolume-synctests/misc-tests/007-subvolume-sync/test.sh+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] btrfs-progs: tests: Introduce run_check_mount_test_dev wrapper for mount loop device in old system

mount command in old system can not add -o loop option automatically for loop device, and make following test failed:

  # ./fsck-tests.sh
  ...
    [TEST]   013-extent-tree-rebuild
  failed: mount /data/btrfsprogs/tests/test.img /data/btrfsprogs/tests/mnt
  test failed for case 013-extent-tree-rebuild

This patchset add run_check_mount_test_dev for mount both block and loop device.

Changelog v1->v2:
1: Use string for mount option instead of string array. 2: Include "run_check $SUDO_HELPER" into wrapper function. Both suggested by: David Sterba <[email protected]>

Zhao Lei (2):
btrfs-progs: tests: Fix mount fail of 013-extent-tree-rebuild
btrfs-progs: tests: Use mount_test_dev for
misc-tests/007-subvolume-sync

 tests/common                                     | 26 ++++++++++++++++++++++++
 tests/fsck-tests/013-extent-tree-rebuild/test.sh |  4 ++--
 tests/misc-tests/007-subvolume-sync/test.sh      |  4 ++--
 3 files changed, 30 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.5.1