btrfs-progs: mkfs: do not scan partially initialized devices
authorDavid Sterba <dsterba@suse.com>
Mon, 22 Aug 2016 14:31:11 +0000 (16:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 24 Aug 2016 12:36:58 +0000 (14:36 +0200)
commit974cfeeebb42b4911737876241c13dd12685b412
tree540eedd541d86d90937e31d1c4bea22b6ed2117b
parent3c350dec06da272fed7ef1ea0eb5031131c77671
btrfs-progs: mkfs: do not scan partially initialized devices

We call scan ioctl on the devices too early, when most of the filesystem
structures are not yet created. Move the registration to the end, after
the filesystem gets closed.

Signed-off-by: David Sterba <dsterba@suse.com>
mkfs.c