btrfs-progs: tests: Move code to create loop device to common
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 27 Jul 2015 12:24:31 +0000 (20:24 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2015 17:25:11 +0000 (19:25 +0200)
commitbafc3a33f5527f3cdd4f27be17687703256d0914
tree01af11e70d0fa4d3571316168ee236869147c2bd
parentcb3424cd23c4c682063d1aa89347fec0736d9c4d
btrfs-progs: tests: Move code to create loop device to common

This code block is used several tests, move it to ./common and add a
helper.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
tests/common
tests/fsck-tests/013-extent-tree-rebuild/test.sh
tests/misc-tests/001-btrfstune-features/test.sh
tests/misc-tests/002-uuid-rewrite/test.sh
tests/misc-tests/003-zero-log/test.sh