1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

pvcreate: fix error from pv_write

After a pv_write() failure, the PV wasn't being skipped.
This commit is contained in:
David Teigland 2016-02-25 16:38:59 -06:00
parent 23a4801dbc
commit 045d086a57

View 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);