X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=cefd61032284ddc36013a7d7ab1d8aaa9bc71b71;hp=929b3569d627782506a981acaadb7e773284a0d1;hb=8c43ba6259409244de64f0b1d388a029e38cf3e5;hpb=b29c71c4a1e96390051d012b4e35c8d0718f7ce3 diff --git a/configure b/configure index 929b3569..cefd6103 100755 --- a/configure +++ b/configure @@ -697,8 +697,7 @@ if test "$libverbs" != "yes" ; then libverbs="no" fi cat > $TMPC << EOF -#include -#include +#include int main(int argc, char **argv) { struct ibv_pd *pd = ibv_alloc_pd(NULL); @@ -1483,12 +1482,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 +1975,7 @@ print_config "bool" "$have_bool" ########################################## # Check whether we have strndup() +strndup="no" cat > $TMPC << EOF #include #include