From 045d086a570d327b00a4a06d139b387d059ade60 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Thu, 25 Feb 2016 16:38:59 -0600 Subject: [PATCH] pvcreate: fix error from pv_write After a pv_write() failure, the PV wasn't being skipped. --- tools/toollib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/toollib.c b/tools/toollib.c index 80290302d..dd5ece3ed 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -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);