summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2013-09-28 01:30:05 +0800
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:23:11 -0400
commit1fdf85a3a30b139c02865bcf599fe5c461857f70 (patch)
treea79427040cb3f2fa958e1624fb9b342dee8aa671 /cmds-check.c
parentc31c50f3309110162f345b6b07389ff6e7e929d4 (diff)
btrfs-progs: device add should check existing FS before adding
as of now, when 'btrfs device add' adds a device it doesn't check if the given device contains an existing FS. This patch will change that to check the same. which when true add will fail, and ask user to use -f option to overwrite. further, since now we have test_dev_for_mkfs() function to check if a disk can be used, so this patch will also use this function to test the given device before adding. 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>
Diffstat (limited to 'cmds-check.c')
0 files changed, 0 insertions, 0 deletions