diff mbox

[Qemu] Passing config options to librados

Message ID 1300191618.2434.27.camel@wido-desktop (mailing list archive)
State New, archived
Headers show

Commit Message

Wido den Hollander March 15, 2011, 12:20 p.m. UTC
None
diff mbox

Patch

diff --git a/block/rbd.c b/block/rbd.c
index f722cb4..7cd12f4 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -222,6 +222,11 @@  static int qemu_rbd_create(const char *filename,
QEMUOptionParameter *options)
         return -EIO;
     }
 
+    if (rados_conf_read_file(cluster, "/etc/ceph/ceph.conf") < 0) {
+        error_report("error reading configuration file");
+        return -EIO;
+    }
+
     if (rados_connect(cluster) < 0) {
         error_report("error connecting");