Merge branch 'master' of https://github.com/raphael-nutanix/fio
[fio.git] / engines / rbd.c
index 7d4d3faf9c5318462fb7c153b7e96a8437e40dc2..a08f47757acdfbe03e18f009d251cb7846272d4d 100644 (file)
@@ -200,6 +200,14 @@ static int _fio_rbd_connect(struct thread_data *td)
                log_err("rados_create failed.\n");
                goto failed_early;
        }
+       if (o->pool_name == NULL) {
+               log_err("rbd pool name must be provided.\n");
+               goto failed_early;
+       }
+       if (!o->rbd_name) {
+               log_err("rbdname must be provided.\n");
+               goto failed_early;
+       }
 
        r = rados_conf_read_file(rbd->cluster, NULL);
        if (r < 0) {