--- a/block/Makefile.objs
+++ b/block/Makefile.objs
@@ -15,7 +15,7 @@ block-obj-y += nbd.o nbd-client.o sheepdog.o
block-obj-$(CONFIG_LIBISCSI) += iscsi.o
block-obj-$(CONFIG_LIBNFS) += nfs.o
block-obj-$(CONFIG_CURL) += curl.o
-block-obj-y += rbd.o
+block-obj-$(CONFIG_CEPH_SUPPORT) += rbd.o
block-obj-$(CONFIG_GLUSTERFS) += gluster.o
block-obj-$(CONFIG_LIBSSH2) += ssh.o
endif
--- a/configure
+++ b/configure
@@ -335,9 +335,9 @@ vhdx=""
quorum=""
live_block_ops="yes"
live_block_migration="no"
+ceph_support="yes"
numa=""
-
# parse CC options first
for opt do
optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
@@ -1131,6 +1131,10 @@ for opt do
;;
--enable-live-block-migration) live_block_migration="yes"
;;
+ --disable-ceph-support) ceph_support=="no"
+ ;;
+ --enable-ceph-support) ceph_support=="yes"
+ ;;
*)
echo "ERROR: unknown option $opt"
echo "Try '$0 --help' for more information"
@@ -1401,6 +1405,8 @@ Advanced options (experts only):
--enable-live-block-ops enable live block operations support
--disable-live-block-migration disable live block migration
--enable-live-block-migration enable live block migration
+ --disable-ceph-support disable support for rbd block driver support
+ --enable-ceph-support enable support for rbd block driver support
--disable-numa disable libnuma support
--enable-numa enable libnuma support
@@ -4693,6 +4699,10 @@ if test "$live_block_migration" = "yes" ; then
echo "CONFIG_LIVE_BLOCK_MIGRATION=y" >> $config_host_mak
fi
+if test "ceph_support" = "yes"; then
+ echo "CONFIG_CEPH_SUPPORT=y" >> $config_host_mak
+fi
+
# USB host support
if test "$libusb" = "yes"; then
echo "HOST_USB=libusb legacy" >> $config_host_mak