]> sourceware.org Git - lvm2.git/commitdiff
pvcreate: fix error from pv_write
authorDavid Teigland <teigland@redhat.com>
Thu, 25 Feb 2016 22:38:59 +0000 (16:38 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 25 Feb 2016 22:40:24 +0000 (16:40 -0600)
After a pv_write() failure, the PV wasn't being skipped.

tools/toollib.c

index 80290302d8cd072a8327444ffca9fb7b81399b3b..dd5ece3eda0a033465b5fd73799ac3360f951e6d 100644 (file)
@@ -4452,6 +4452,7 @@ do_command:
                if (!pv_write(cmd, pv, 0)) {
                        log_error("Failed to write physical volume \"%s\"", pv_name);
                        dm_list_move(&pp->arg_fail, &pd->list);
+                       continue;
                }
 
                log_print_unless_silent("Physical volume \"%s\" successfully created", pv_name);
This page took 0.045617 seconds and 5 git commands to generate.