summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorIgor Fedotov <ifedotov@suse.com>2018-02-09 17:39:28 +0300
committerIgor Fedotov <ifedotov@suse.com>2018-02-14 22:35:51 +0300
commitd5f9b0eabcd4eeec0e2cf3821d3a6f44bcd0981f (patch)
treee04111a2bc962d57d987ed838cb452c69b3fbb6b /configure
parentf2cd91604af170e972438c461a40230e266a57d9 (diff)
downloadfio-d5f9b0eabcd4eeec0e2cf3821d3a6f44bcd0981f.tar.gz
fio-d5f9b0eabcd4eeec0e2cf3821d3a6f44bcd0981f.tar.bz2
Add support for Ceph Rados benchmarking.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure b/configure
index d92bb0f5..5d283d7c 100755
--- a/configure
+++ b/configure
@@ -173,6 +173,8 @@ for opt do
;;
--disable-rdma) disable_rdma="yes"
;;
+ --disable-rados) disable_rados="yes"
+ ;;
--disable-rbd) disable_rbd="yes"
;;
--disable-rbd-blkin) disable_rbd_blkin="yes"
@@ -1527,6 +1529,35 @@ fi
print_config "IPv6 helpers" "$ipv6"
##########################################
+# check for rados
+if test "$rados" != "yes" ; then
+ rados="no"
+fi
+cat > $TMPC << EOF
+#include <rados/librados.h>
+
+int main(int argc, char **argv)
+{
+ rados_t cluster;
+ rados_ioctx_t io_ctx;
+ const char cluster_name[] = "ceph";
+ const char user_name[] = "client.admin";
+ const char pool[] = "rados";
+
+ /* The rados_create2 signature required was only introduced in ceph 0.65 */
+ rados_create2(&cluster, cluster_name, user_name, 0);
+ rados_ioctx_create(cluster, pool, &io_ctx);
+
+ return 0;
+}
+EOF
+if test "$disable_rados" != "yes" && compile_prog "" "-lrados" "rados"; then
+ LIBS="-lrados $LIBS"
+ rados="yes"
+fi
+print_config "Rados engine" "$rados"
+
+##########################################
# check for rbd
if test "$rbd" != "yes" ; then
rbd="no"
@@ -2262,6 +2293,9 @@ fi
if test "$ipv6" = "yes" ; then
output_sym "CONFIG_IPV6"
fi
+if test "$rados" = "yes" ; then
+ output_sym "CONFIG_RADOS"
+fi
if test "$rbd" = "yes" ; then
output_sym "CONFIG_RBD"
fi