summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Zak2009-02-18 15:21:55 +0100
committerKarel Zak2009-02-18 15:21:55 +0100
commit84a26f645c29fede0081d4b88a330fba6b8f9a8c (patch)
tree4fab827463515a43f2a6925611dc1d28b6336562 /lib
parentfsck: move fsck from e2fsprogs to util-linux-ng (diff)
downloadkernel-qcow2-util-linux-84a26f645c29fede0081d4b88a330fba6b8f9a8c.tar.gz
kernel-qcow2-util-linux-84a26f645c29fede0081d4b88a330fba6b8f9a8c.tar.xz
kernel-qcow2-util-linux-84a26f645c29fede0081d4b88a330fba6b8f9a8c.zip
lib: make open_device() optional in fsprobe.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/fsprobe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fsprobe.c b/lib/fsprobe.c
index 5fecc6492..98c03e88f 100644
--- a/lib/fsprobe.c
+++ b/lib/fsprobe.c
@@ -14,6 +14,7 @@
#include "pathnames.h"
#include "fsprobe.h"
+#if defined(HAVE_BLKID_EVALUATE_SPEC) || defined(HAVE_LIBVOLUME_ID)
/* ask kernel developers why we need such ugly open() method... */
static int
open_device(const char *devname)
@@ -34,6 +35,7 @@ open_device(const char *devname)
return -1;
}
+#endif
/*
* Parses NAME=value, returns -1 on parse error, 0 success. The success is also