From dacc340cc89e9be5cb88986a444466edb3a06e52 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 Apr 2013 12:34:50 +0200 Subject: [PATCH] pvscan: missing test for id_read_format (in release fix) --- tools/pvscan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/pvscan.c b/tools/pvscan.c index ab58c5fcc..7c55faa12 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -103,7 +103,9 @@ static int _auto_activation_handler(struct cmd_context *cmd, if (partial) return 1; - id_read_format(&vgid_raw, vgid); + if (!id_read_format(&vgid_raw, vgid)) + return_0; + /* NB. This is safe because we know lvmetad is running and we won't hit * disk. */ if (!(vg = vg_read_internal(cmd, NULL, (const char *) &vgid_raw, 0, &consistent))) -- 2.43.5