devices opened by check_mounted() in main() should close before exit of btrfs-image.
Signed-off-by: Zhao Lei <zhao...@cn.fujitsu.com> --- btrfs-image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/btrfs-image.c b/btrfs-image.c index c7681f4..78ae828 100644 --- a/btrfs-image.c +++ b/btrfs-image.c @@ -2881,5 +2881,7 @@ out: } } + btrfs_close_all_devices(); + return !!ret; } -- 1.8.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html