btrfs-progs: cmd_start_replace() to use test_dev_for_mkfs()
authorAnand Jain <anand.jain@oracle.com>
Thu, 25 Jul 2013 17:35:27 +0000 (01:35 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Sep 2013 17:40:51 +0000 (19:40 +0200)
commit689ad3e362c1e6d54ef7b6876dbb64e1e51b8cf1
tree2aafcf343e9de147cf42d92d8dbb07a85a0816e8
parentbbe9df154b2c9bc122e1099382d1658c8cf0e904
btrfs-progs: cmd_start_replace() to use test_dev_for_mkfs()

test_dev_for_mkfs() is a common place where
we check if a device is fit for the btrfs use.
cmd_start_replace() should make use of test_dev_for_mkfs(),
and here the test_dev_for_mkfs() is further enhanced
to fit the cmd_start_replace() needs.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-replace.c
utils.c