1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmetad: add some message for error path

Do not leave replay uninitialized for internal error.
This commit is contained in:
Zdenek Kabelac 2013-06-14 23:17:28 +02:00
parent c2dc21d89f
commit 54e0622650

1
lib/cache/lvmetad.c vendored
View File

@ -345,6 +345,7 @@ struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd, const char *vgna
} else {
if (!vgname) {
log_error(INTERNAL_ERROR "VG name required (VGID not available)");
reply = _lvmetad_send("vg_lookup", "name = %s", "MISSING", NULL);
goto out;
}
log_debug_lvmetad("Asking lvmetad for VG %s", vgname);