btrfs-progs: Introduce btrfs_close_all_devices helper
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 24 Aug 2015 08:45:02 +0000 (16:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2015 17:25:13 +0000 (19:25 +0200)
commitb0f760c91aa9de9a853545f36dc063f6ef5e9008
tree9b9a64a5c17b8b0521d9b56dd629de428aee9a72
parent004eabb1ad09171389b7e9260342758e7b331a07
btrfs-progs: Introduce btrfs_close_all_devices helper

If there is more than one fs_devices in fs_uuids list (like mkfs.btrfs
does), we need close them all before exit. Add a helper for that.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c
volumes.h