From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRxxz-00086b-EH for qemu-devel@nongnu.org; Wed, 19 Aug 2015 03:39:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRxxy-00052v-An for qemu-devel@nongnu.org; Wed, 19 Aug 2015 03:39:23 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:35382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRxxy-00052k-03 for qemu-devel@nongnu.org; Wed, 19 Aug 2015 03:39:22 -0400 Received: by lahi9 with SMTP id i9so113755925lah.2 for ; Wed, 19 Aug 2015 00:39:20 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 19 Aug 2015 15:39:20 +0800 Message-ID: From: Jaze Lee Content-Type: multipart/alternative; boundary=001a1133af6af64760051da5215d Subject: [Qemu-devel] where can i customize rbd object size? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --001a1133af6af64760051da5215d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3D/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 (1UL << 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 , if someone knows , please tell me. Thanks a lot. --=20 =E8=B0=A6=E8=B0=A6=E5=90=9B=E5=AD=90 --001a1133af6af64760051da5215d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

=C2=A0 =C2=A0=C2=A0qemu-img conv= ert -f qcow2 Trove---mysql-5.6---2015-07-16.qcow2 -O raw rbd:openstack-00/8= 205d01a-874c-44c0-b114-1c03821fcc24:conf=3D/etc/ceph/ceph.conf
=C2=A0 =C2=A0How can i specify the object size that rbd uses?= =C2=A0 I found that the qemu-image can only use the default object size. It= is defined in block/rbd.c

=C2=A0 =C2=A0=C2= =A0#define = OBJ_MAX_SIZE (1UL << OBJ_DEFAULT_OBJ_ORDER)
=C2=A0 =C2=A0
=C2=A0 =C2=A0 If someone know how to specify the object size= , please tell me. thanks a lot.
=C2=A0 =C2=A0 By the way i do not= find the define for=C2=A0=C2=A0OBJ_DEFAULT_OBJ_ORDER, if someone knows ,= please tell me. Thanks a lot.

--
=E8=B0=A6=E8=B0=A6=E5=90=9B=E5=AD=90
--001a1133af6af64760051da5215d--