---
configure.ac | 6 ++++++
src/Makefile.am | 7 +++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 29c6396..68786c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1438,6 +1438,12 @@ AM_CONDITIONAL([WITH_STORAGE_DISK], [test
"$with_storage_disk" = "yes"])
AC_SUBST([LIBPARTED_CFLAGS])
AC_SUBST([LIBPARTED_LIBS])
+AC_CHECK_HEADER([linux/fiemap.h],[
+ have_fiemap=yes
+ AC_DEFINE([HAVE_FIEMAP],[],[fiemap is available])
+ ],[])
+AM_CONDITIONAL([HAVE_FIEMAP], [test "$have_fiemap" = "yes"])
+
dnl
dnl check for libcurl (ESX)
dnl
diff --git a/src/Makefile.am b/src/Makefile.am
index 3232256..92b1b7c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -263,6 +263,9 @@ STORAGE_DRIVER_MPATH_SOURCES = \
STORAGE_DRIVER_DISK_SOURCES = \
storage/storage_backend_disk.h storage/storage_backend_disk.c
+STORAGE_DRIVER_FIEMAP_SOURCES = \
+ storage/storage_driver_fiemap.c
+
STORAGE_HELPER_DISK_SOURCES = \
storage/parthelper.c
@@ -661,6 +664,10 @@ if WITH_STORAGE_DISK
libvirt_driver_storage_la_SOURCES += $(STORAGE_DRIVER_DISK_SOURCES)
endif
+if HAVE_FIEMAP
+libvirt_driver_storage_la_SOURCES += $(STORAGE_DRIVER_FIEMAP_SOURCES)
+endif
+
if WITH_NODE_DEVICES
# Needed to keep automake quiet about conditionals
if WITH_DRIVER_MODULES
--
1.6.5.5