Btrfs-progs: make sure we return an error when we can't add a device

I noticed xfstests was failing in a weird way but it was because our device add
was failing but not actually returning an error so we were failing further down
the test.  Fix this by making sure we return an error if we fail the mkfs tests.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
master
Josef Bacik 2013-10-21 09:58:08 -04:00 committed by Chris Mason
parent d1570a0618
commit f3fb002051
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ static int cmd_add_dev(int argc, char **argv)
res = test_dev_for_mkfs(argv[i], force, estr);
if (res) {
fprintf(stderr, "%s", estr);
ret++;
continue;
}