summaryrefslogtreecommitdiff
path: root/btrfs-image.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-09-09 21:32:23 +0800
committerDavid Sterba <dsterba@suse.com>2015-09-11 17:03:39 +0200
commitd17313dd4bc57a536256bc05841b00f3ad05c21b (patch)
tree91b560e32ed330d0bda7e4d136c376636817c7b5 /btrfs-image.c
parentde554435e8ed18aea9f8a4da876c2b5a67bdc0ee (diff)
downloadbtrfs-progs-d17313dd4bc57a536256bc05841b00f3ad05c21b.tar.gz
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 <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-image.c')
-rw-r--r--btrfs-image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/btrfs-image.c b/btrfs-image.c
index 551487f..82eed05 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -2881,5 +2881,7 @@ out:
}
}
+ btrfs_close_all_devices();
+
return !!ret;
}