[lvm-devel] LVM2/daemons/lvmetad lvmetad-core.c
zkabelac at sourceware.org
zkabelac at sourceware.org
Mon Feb 27 10:19:00 UTC 2012
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-27 10:19:00
Modified files:
daemons/lvmetad: lvmetad-core.c
Log message:
Add assert for oldname
Code cannot proceed if oldname would be NULL.
Since lvmetad currently doesn't use logging mechanism of lvm to report
internal errors - stay with current code style of lvmetad which uses
plain asserts for cases like this.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/lvmetad/lvmetad-core.c.diff?cvsroot=lvm2&r1=1.43&r2=1.44
--- LVM2/daemons/lvmetad/lvmetad-core.c 2012/02/27 10:10:43 1.43
+++ LVM2/daemons/lvmetad/lvmetad-core.c 2012/02/27 10:19:00 1.44
@@ -595,6 +595,7 @@
if (!old)
return 0;
+ assert(oldname);
if (update_pvids)
update_pvid_to_vgid(s, old, "#orphan", 0);
More information about the lvm-devel
mailing list