Re: [PATCH 2/2] btrfs-progs: close all fs_devices before exit in some commands

2015-08-25 Thread David Sterba
On Mon, Aug 24, 2015 at 04:45:03PM +0800, Zhao Lei wrote: > mkfs created more than one fs_devices in fs_uuids. > 1: one is for file system been created > 2: others are created in test_dev_for_mkfs for check mount point >test_dev_for_mkfs()-> ... -> btrfs_scan_one_device() > > Current code only

[PATCH 2/2] btrfs-progs: close all fs_devices before exit in some commands

2015-08-24 Thread Zhao Lei
mkfs created more than one fs_devices in fs_uuids. 1: one is for file system been created 2: others are created in test_dev_for_mkfs for check mount point test_dev_for_mkfs()-> ... -> btrfs_scan_one_device() Current code only close above 1, and this patch close above 2. Similar problem exist i