From: Stefan Hajnoczi <stefanha@gmail.com>
To: Jaze Lee <jazeltq@gmail.com>
Cc: Josh Durgin <jdurgin@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] where can i customize rbd object size?
Date: Thu, 3 Sep 2015 17:48:58 +0100 [thread overview]
Message-ID: <20150903164858.GE18405@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CAKZcxgea6vyCs_6tPWrU_DpmF1BJ+K1idAV2=NP30YAe2WD7og@mail.gmail.com>
On Wed, Aug 19, 2015 at 03:39:20PM +0800, Jaze Lee wrote:
> Hello,
>
> qemu-img convert -f qcow2 Trove---mysql-5.6---2015-07-16.qcow2 -O raw
> rbd:openstack-00/8205d01a-874c-44c0-b114-1c03821fcc24:conf=/etc/ceph/ceph.conf
>
> How can i specify the object size that rbd uses? I found that the
> qemu-image can only use the default object size. It is defined in
> block/rbd.c
>
> #define OBJ_MAX_SIZE
> <https://lxr.missinglinkelectronics.com/qemu+v2.1.0/+code=OBJ_MAX_SIZE>
> (1UL << OBJ_DEFAULT_OBJ_ORDER
> <https://lxr.missinglinkelectronics.com/qemu+v2.1.0/+code=OBJ_DEFAULT_OBJ_ORDER>
> )
>
> If someone know how to specify the object size, please tell me. thanks
> a lot.
> By the way i do not find the define for OBJ_DEFAULT_OBJ_ORDER
> <https://lxr.missinglinkelectronics.com/qemu+v2.1.0/+code=OBJ_DEFAULT_OBJ_ORDER>,
> if someone knows , please tell me. Thanks a lot.
I have CCed the rbd.c maintainer for you:
$ scripts/get_maintainer.pl -f block/rbd.c
Josh Durgin <jdurgin@redhat.com> (supporter:RBD)
next prev parent reply other threads:[~2015-09-03 16:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-19 7:39 [Qemu-devel] where can i customize rbd object size? Jaze Lee
2015-09-03 16:48 ` Stefan Hajnoczi [this message]
2015-09-08 21:02 ` Josh Durgin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150903164858.GE18405@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=jazeltq@gmail.com \
--cc=jdurgin@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).