Feature #5067
librbd: configuration options to override default image creation parameters
Description
From http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/15064:
For example, there could be just:
rbd_create_default_format UINT default 1
or we could add other options to adjust the rest of the image creation
parameters i.e.:
rbd_create_default_object_order INT default 22
// these only apply to format 2
rbd_create_default_features UINT64 default 1 # 1 for layering, 3 for layering+stripingv2
rbd_create_default_stripe_count UINT64 default 1 # changing requires stripingv2 feature
rbd_create_default_stripe_unit UINT64 default 4194304 # changing to non-object size requires stripingv2 feature
For backwards compatibility, the default values preserve the existing
behavior of rbd_create(), but when you run qemu-img you could change
them to create format 2 images and potentially change the striping
as well. These options could be easily backported to cuttlefish
and bobtail.
Related issues
Associated revisions
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>
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>
(cherry picked from commit aacc9adc4e9ca90bbe73ac153cc754a3a5b2c0a1)
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>
(cherry picked from commit aacc9adc4e9ca90bbe73ac153cc754a3a5b2c0a1)
History
#1 Updated by Sage Weil almost 11 years ago
- Target version set to v0.64
#2 Updated by Sage Weil almost 11 years ago
- translation missing: en.field_story_points set to 2.00
#3 Updated by Josh Durgin almost 11 years ago
- Status changed from New to Fix Under Review
- Assignee set to Sage Weil
wip-librbd-config-create
#4 Updated by Sage Weil almost 11 years ago
- Status changed from Fix Under Review to Resolved