]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: add --object-size option 6830/head
authorVikhyat Umrao <vumrao@redhat.com>
Mon, 7 Dec 2015 16:48:13 +0000 (22:18 +0530)
committerVikhyat Umrao <vumrao@redhat.com>
Tue, 8 Dec 2015 10:44:03 +0000 (16:14 +0530)
commit71690e707f33691e7ee0164606e113a645fc6900
treefa87c782392adb1a24f98f5f394272e323399880
parent84ee7c3399860b55c75d10f0ee696dcca2b25af0
rbd: add --object-size option

Object size can be specified when creating an image with the --order option,
as a number of bits in the size.

This patch is adding new option --object-size. This new option will specify
object size directly for example --object-size 2M.

It would be easier to use. --order is still present for backwards compatibility.
For simplicity, we are rounding up the object size to the nearest power of 2.

Fixes #12112

Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
doc/man/8/rbd.rst
src/test/cli-integration/rbd/defaults.t
src/test/cli/rbd/help.t
src/tools/rbd/ArgumentTypes.cc
src/tools/rbd/ArgumentTypes.h
src/tools/rbd/Utils.cc