From: David Zeuthen Date: Fri, 26 Aug 2011 15:09:24 +0000 (-0400) Subject: Change the default for LVM2 and dm-multipath support to off X-Git-Tag: upstream/2.1.2~544 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99de237eed6a026597e9b045527631c42ab86968;p=platform%2Fupstream%2Fudisks2.git Change the default for LVM2 and dm-multipath support to off 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 Signed-off-by: Kay Sievers --- diff --git a/configure.ac b/configure.ac index 020a586..50c0fe2 100644 --- a/configure.ac +++ b/configure.ac @@ -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