LVM2 ./WHATS_NEW lib/commands/toolcontext.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-27 10:05:36
Modified files:
. : WHATS_NEW
lib/commands : toolcontext.c
Log message:
Test result of _init_tags.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2312&r2=1.2313
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.151&r2=1.152
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.94 - ==================================== + Check for errors in _init_tags() during config loading. Always check result of _set_vg_name() in lvcreate. Drop unused call to uname() during clvmd initialization. Test allocation result in sysfs filter creation.
lib/commands/toolcontext.c +4 -3
@@ -532,9 +532,10 @@dm_list_add (&cmd->config_files, &cfl->list); out: -if (*tag) -_init_tags (cmd, cfl->cft); -else +if (*tag) { +if (!_init_tags (cmd, cfl->cft)) + return_0; + }else /* Use temporary copy of lvm.conf while loading other files */ cmd->cft = cfl->cft;