From d17313dd4bc57a536256bc05841b00f3ad05c21b Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Wed, 9 Sep 2015 21:32:23 +0800 Subject: btrfs-progs: image: close all_devices at the end Devices opened by check_mounted() in main() should closed before the exit of btrfs-image. Signed-off-by: Zhao Lei Signed-off-by: David Sterba --- btrfs-image.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'btrfs-image.c') diff --git a/btrfs-image.c b/btrfs-image.c index 551487fb..82eed054 100644 --- a/btrfs-image.c +++ b/btrfs-image.c @@ -2881,5 +2881,7 @@ out: } } + btrfs_close_all_devices(); + return !!ret; } -- cgit v1.2.3