mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
pvcreate: fix error from pv_write
After a pv_write() failure, the PV wasn't being skipped.
This commit is contained in:
parent
23a4801dbc
commit
045d086a57
@ -4452,6 +4452,7 @@ do_command:
|
|||||||
if (!pv_write(cmd, pv, 0)) {
|
if (!pv_write(cmd, pv, 0)) {
|
||||||
log_error("Failed to write physical volume \"%s\"", pv_name);
|
log_error("Failed to write physical volume \"%s\"", pv_name);
|
||||||
dm_list_move(&pp->arg_fail, &pd->list);
|
dm_list_move(&pp->arg_fail, &pd->list);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
log_print_unless_silent("Physical volume \"%s\" successfully created", pv_name);
|
log_print_unless_silent("Physical volume \"%s\" successfully created", pv_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user