X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Flvm.c;h=564517c5841c4acca86ee3f9da46169572e4c934;hb=1c0ab7ab954c01cac2c87425a4b027e44c80e645;hp=3920e95b848b9c5e1c4b1bf4d52b4c6fa552906e;hpb=3cf719bc077a5f0d4f1a79279a5ba6e41d53c9b9;p=libguestfs.git diff --git a/daemon/lvm.c b/daemon/lvm.c index 3920e95..564517c 100644 --- a/daemon/lvm.c +++ b/daemon/lvm.c @@ -26,6 +26,14 @@ #include "daemon.h" #include "c-ctype.h" #include "actions.h" +#include "optgroups.h" + +int +optgroup_lvm2_available (void) +{ + int r = access ("/sbin/lvm", X_OK); + return r == 0; +} /* LVM actions. Keep an eye on liblvm, although at the time * of writing it hasn't progressed very far.