All of lore.kernel.org
 help / color / mirror / Atom feed
* main - cov: check setup_devices return code
@ 2021-04-23 21:05 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2021-04-23 21:05 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d95b26fae0bdab7d306f0dff1d9328a697e041f3
Commit:        d95b26fae0bdab7d306f0dff1d9328a697e041f3
Parent:        ece80cd0fbce92d2ce248913fceffbf15e9d37f0
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Thu Apr 22 12:34:16 2021 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Fri Apr 23 23:00:55 2021 +0200

cov: check setup_devices return code

---
 tools/pvck.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/pvck.c b/tools/pvck.c
index 6bc1c091f..74663ec43 100644
--- a/tools/pvck.c
+++ b/tools/pvck.c
@@ -3187,8 +3187,8 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
 
 	if (argc == 1)
 		setup_device(cmd, argv[0]);
-	else
-		setup_devices(cmd);
+	else if (!setup_devices(cmd))
+		return ECMD_FAILED;
 
 	for (i = 0; i < argc; i++) {
 		pv_name = argv[i];



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-23 21:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 21:05 main - cov: check setup_devices return code Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.