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 <dsterba@xxxxxxx>
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(-)
--
1.8.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html