btrfs-progs: tests: Move extract_image out of check_all_images for common use
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 23 Sep 2015 07:19:04 +0000 (15:19 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Oct 2015 09:48:24 +0000 (11:48 +0200)
commit5627eee02b6e8b0a933ae88767e998923eb359f8
tree0f21d4e09cbd14c1964058f886e693ae2a55dfc1
parent26bd9120614f6809783ea17a8bc010b767bf5008
btrfs-progs: tests: Move extract_image out of check_all_images for common use

Move code for extract image file to a function from check_all_images()
for common use, so caller can use this function to extrace single
image file.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
[minor reformatting and updates]
Signed-off-by: David Sterba <dsterba@suse.com>
tests/common