time: fix overflow in timespec_add_msec
[fio.git] / configure
index 929b3569d627782506a981acaadb7e773284a0d1..59af1b6c3d1b8df402300b85b9ea454dd9c0c927 100755 (executable)
--- a/configure
+++ b/configure
@@ -1483,12 +1483,16 @@ 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[] = "rbd";
-
   int major, minor, extra;
-  rbd_version(&major, &minor, &extra);
 
+  rbd_version(&major, &minor, &extra);
+  /* 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
@@ -1972,6 +1976,7 @@ print_config "bool" "$have_bool"
 
 ##########################################
 # Check whether we have strndup()
+strndup="no"
 cat > $TMPC << EOF
 #include <string.h>
 #include <stdlib.h>