]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
rbd: Use RBD format 2 by default when creating images.
authorWido den Hollander <wido@widodh.nl>
Tue, 14 Jul 2015 08:15:26 +0000 (10:15 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 16 Jul 2015 16:31:20 +0000 (12:31 -0400)
commit045cac32fd6c6efd1c1d93d4659a5d6676ea89fa
treee0dba4ba43ad18973b3124e43dab9011c7221a50
parent0f49f1dc6f447b136aaabe4903b7c7242478145f
rbd: Use RBD format 2 by default when creating images.

We used to look at the librbd code version and depending on that
we would invoke rbd_create3() or rbd_create().

Since librbd version 0.67.9 we can however tell RBD that it should
create rbd format 2 images even if we invoke rbd_create().

The less options we pass to librbd, the more we can lean on the sane
defaults it uses.

For rbd_create3() we had things like the stripe count and unit hardcoded
in libvirt and that might cause problems down the road.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/storage/storage_backend_rbd.c