btrfs-progs/tests/fsck-tests
Zhao Lei d4c4443c2d btrfs-progs: tests: Fix mount fail of 013-extent-tree-rebuild
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

Considering that $TEST_DEV can be block or loop device, we need determine
our mount option in a condition for both case.

This patch create a wrapper function for above request, to solve current
problem in 013-extent-tree-rebuild, and support similar request in future.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2015-09-01 14:53:16 +02:00
..
001-bad-file-extent-bytenr btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
002-bad-transid btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
003-shift-offsets btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
004-no-dir-index btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
005-bad-item-offset btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
006-bad-root-items btrfs-progs: tests: Use --no-same-owner option for tar 2015-09-01 14:52:09 +02:00
007-bad-offset-snapshots btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
008-bad-dir-index-name btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
009-no-dir-item-or-index btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
010-no-rootdir-inode-item btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
011-no-inode-item btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
012-leaf-corruption btrfs-progs: tests: Use --no-same-owner option for tar 2015-09-01 14:52:09 +02:00
013-extent-tree-rebuild btrfs-progs: tests: Fix mount fail of 013-extent-tree-rebuild 2015-09-01 14:53:16 +02:00
014-no-extent-info btrfs-progs: deal with no extent info 2015-02-09 14:53:07 -05:00
015-check-bad-memory-access btrfs-progs: test: 015-check-bad-memory-access 2015-05-25 16:10:48 +02:00
016-wrong-inode-nbytes btrfs-progs: tests: Add test case for I_ERR_FILE_WRONG_NBYTES repair 2015-07-03 17:57:48 +02:00
017-missing-all-file-extent btrfs-progs: fsck-tests: add case for inode losing all its extents 2015-08-31 19:25:12 +02:00