]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: make image creation defaults configurable 303/head
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 16 May 2013 22:28:40 +0000 (15:28 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 16 May 2013 22:28:40 +0000 (15:28 -0700)
commitaacc9adc4e9ca90bbe73ac153cc754a3a5b2c0a1
tree390fb7355a95728e1083b3243351ba6543333409
parent53ee6f965e8f06c7256848210ad3c4f89d0cb5a0
librbd: make image creation defaults configurable

Programs using older versions of the image creation functions can't
set newer parameters like image format and fancier striping.

Setting these options lets them use all the new functionality without
being patched and recompiled to use e.g. rbd_create3().
This is particularly useful for things like qemu-img, which does not
know how to create format 2 images yet.

Refs: #5067
backport: cuttlefish, bobtail
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/config_opts.h
src/librbd/internal.cc
src/librbd/internal.h
src/librbd/librbd.cc
src/test/pybind/test_rbd.py