]> sourceware.org Git - lvm2.git/commitdiff
pvscan: missing test for id_read_format
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 29 Apr 2013 10:34:50 +0000 (12:34 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 3 May 2013 13:42:44 +0000 (15:42 +0200)
(in release fix)

tools/pvscan.c

index ab58c5fcceaee419b239b4d260724fedd6f99865..7c55faa12e3cc6a8743cde0e8208a02d643e8f71 100644 (file)
@@ -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)))
This page took 0.037298 seconds and 5 git commands to generate.