On Wed, Sep 5, 2012 at 9:40 AM, Tommi Virtanen <tv@xxxxxxxxxxx> wrote: > On Wed, Sep 5, 2012 at 5:35 AM, Wido den Hollander <wido@xxxxxxxxx> wrote: >> I also thought it is on the roadmap to not read /etc/ceph/ceph.conf by >> default with librbd/librados to take away these kind of issues. > > Hmm. I'm not intimately familiar with librbd, but it seems it just > takes RADOS ioctx as an argument, and as far as I know (/can > experiment in 2 minutes) you definitely have a choice of whether > librados reads a config file or not.. > > rbd the command line tool does read a config file by default; pass > --conf=/dev/null to prevent that, then pass what ever config options > you need to set as --foo-bar=baz. So *QEmu* makes librados read a config file. You can avoid that just like with the rbd command line tool, pass conf=/dev/null. Quoting git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git block/rbd.c: * The "conf" option specifies a Ceph configuration file to read. If * it is not specified, we will read from the default Ceph locations * (e.g., /etc/ceph/ceph.conf). To avoid reading _any_ configuration * file, specify conf=/dev/null. -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html