mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
pvscan: missing test for id_read_format
(in release fix)
This commit is contained in:
parent
f319a61e9c
commit
dacc340cc8
@ -103,7 +103,9 @@ static int _auto_activation_handler(struct cmd_context *cmd,
|
|||||||
if (partial)
|
if (partial)
|
||||||
return 1;
|
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
|
/* NB. This is safe because we know lvmetad is running and we won't hit
|
||||||
* disk. */
|
* disk. */
|
||||||
if (!(vg = vg_read_internal(cmd, NULL, (const char *) &vgid_raw, 0, &consistent)))
|
if (!(vg = vg_read_internal(cmd, NULL, (const char *) &vgid_raw, 0, &consistent)))
|
||||||
|
Loading…
Reference in New Issue
Block a user