Change the default for LVM2 and dm-multipath support to off
authorDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 15:09:24 +0000 (11:09 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 15:15:55 +0000 (11:15 -0400)
The udev integration in device-mapper (and its users) is not exactly
working well - for example, you need to run 'udevadm trigger' in order
for the /lib/udev/udisks-lvm-pv-export prober to kick
in. Additionally, the fact that we run said prober on new events is
causing a lot of problems because its use of liblvm and the fact that
liblvm cannot currently be safely used in the udev path.

Signed-off-by: David Zeuthen <davidz@redhat.com>
Signed-off-by: Kay Sievers <kay@redhat.com>
configure.ac

index 020a586..50c0fe2 100644 (file)
@@ -164,8 +164,8 @@ AC_SUBST(DEVMAPPER_CFLAGS)
 AC_SUBST(DEVMAPPER_LIBS)
 
 have_lvm2=no
-AC_ARG_ENABLE(lvm2, AS_HELP_STRING([--disable-lvm2], [disable LVM2 support]))
-if test "x$enable_lvm2" != "xno"; then
+AC_ARG_ENABLE(lvm2, AS_HELP_STRING([--enable-lvm2], [enable LVM2 support]))
+if test "x$enable_lvm2" = "xyes"; then
   PKG_CHECK_MODULES(LVM2, lvm2app >= 2.2,
                     [AC_DEFINE(HAVE_LVM2, 1, [Define if LVM2 is available]) have_lvm2=yes],
                     have_lvm2=no)
@@ -178,8 +178,8 @@ fi
 AM_CONDITIONAL(HAVE_LVM2, [test "$have_lvm2" = "yes"])
 
 have_dmmp=no
-AC_ARG_ENABLE(dmmp, AS_HELP_STRING([--disable-dmmp], [disable dm-multipath support]))
-if test "x$enable_dmmp" != "xno"; then
+AC_ARG_ENABLE(dmmp, AS_HELP_STRING([--enable-dmmp], [enable dm-multipath support]))
+if test "x$enable_dmmp" = "xyes"; then
   have_dmmp=yes
   AC_DEFINE(HAVE_DMMP, 1, [Define to 1 if dmmp is available])
 fi