[lvm-devel] LVM2/lib/commands toolcontext.c
zkabelac at sourceware.org
zkabelac at sourceware.org
Wed Feb 8 13:44:50 UTC 2012
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-08 13:44:50
Modified files:
lib/commands : toolcontext.c
Log message:
Move label_init up in code stack
label_exit() is called destroy_toolcontext() and we are now
using standard dm_list function for destroy, we have to make sure
dm_list gets initialized properly.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.149&r2=1.150
--- LVM2/lib/commands/toolcontext.c 2012/02/08 10:46:24 1.149
+++ LVM2/lib/commands/toolcontext.c 2012/02/08 13:44:49 1.150
@@ -896,8 +896,6 @@
const struct dm_config_node *cn;
#endif
- label_init();
-
#ifdef LVM1_INTERNAL
if (!(fmt = init_lvm1_format(cmd)))
return 0;
@@ -1268,6 +1266,7 @@
dm_list_init(&cmd->segtypes);
dm_list_init(&cmd->tags);
dm_list_init(&cmd->config_files);
+ label_init();
/* FIXME Make this configurable? */
reset_lvm_errno(1);
More information about the lvm-devel
mailing list