Skip to contentSkip to conversation

LVM2/lib/commands toolcontext.c

PATCH [email protected] 1 participant 1 message Jul 8, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2011-07-08 17:31:06

Modified files:
lib/commands : toolcontext.c

Log message:
missing ifdef when new fn unused

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.125&r2=1.126

lib/commands/toolcontext.c +2 -0
@@ -200,6 +200,7 @@
 	reset_lvm_errno(1);
 }
 
+#ifdef UDEV_SYNC_SUPPORT
 /*
  * Until the DM_UEVENT_GENERATED_FLAG was introduced in kernel patch 
  * 856a6f1dbd8940e72755af145ebcd806408ecedd
@@ -214,6 +215,7 @@
 	       (sscanf(vsn, "%u.%u.%u", &maj, &min, &patchlevel) == 3) &&
 	       (maj == 4 ? min >= 18 : maj > 4);
 }
+#endif
 
 static int _process_config(struct cmd_context *cmd)
 {