Project

General

Profile

Feature #5067

librbd: configuration options to override default image creation parameters

Added by Josh Durgin almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

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

Duplicated by rbd - Feature #5135: librbd should create format 2 images by default Duplicate 05/21/2013
Duplicated by rbd - Bug #4897: qemu rbd driver should allow manipulation of format 2, striped images Duplicate 05/02/2013

Associated revisions

Revision aacc9adc (diff)
Added by Josh Durgin almost 11 years ago

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 <>

Revision 49c04c62 (diff)
Added by Josh Durgin almost 11 years ago

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 <>
(cherry picked from commit aacc9adc4e9ca90bbe73ac153cc754a3a5b2c0a1)

Revision 4ad13c94 (diff)
Added by Josh Durgin almost 11 years ago

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 <>
(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

Also available in: Atom PDF