diff options
author | Teruaki Ishizaki <ishizaki.teruaki@lab.ntt.co.jp> | 2015-02-13 18:20:53 +0900 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-03-09 11:11:59 +0100 |
commit | 876eb1b0cc2b04927739cba10e4e73e8b990d65e (patch) | |
tree | 3c70f2fe19461aa9b2238337d8ed732e35108b35 /include | |
parent | 0cc84887068eeb59eed84dbab6547b39e83d739c (diff) | |
download | qemu-876eb1b0cc2b04927739cba10e4e73e8b990d65e.zip |
sheepdog: selectable object size support
Previously, qemu block driver of sheepdog used hard-coded VDI object size.
This patch enables users to handle VDI object size.
When you start qemu, you don't need to specify additional command option.
But when you create the VDI which doesn't have default object size
with qemu-img command, you specify object_size option.
If you want to create a VDI of 8MB object size,
you need to specify following command option.
# qemu-img create -o object_size=8M sheepdog:test1 100M
In addition, when you don't specify qemu-img command option,
a default value of sheepdog cluster is used for creating VDI.
# qemu-img create sheepdog:test2 100M
Signed-off-by: Teruaki Ishizaki <ishizaki.teruaki@lab.ntt.co.jp>
Acked-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/block_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index b340e7e140..9f7b5bd189 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -56,6 +56,7 @@ #define BLOCK_OPT_ADAPTER_TYPE "adapter_type" #define BLOCK_OPT_REDUNDANCY "redundancy" #define BLOCK_OPT_NOCOW "nocow" +#define BLOCK_OPT_OBJECT_SIZE "object_size" #define BLOCK_PROBE_BUF_SIZE 512 |