From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXXhC-0001SZ-2F for qemu-devel@nongnu.org; Thu, 03 Sep 2015 12:49:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXXh8-0008NE-RM for qemu-devel@nongnu.org; Thu, 03 Sep 2015 12:49:06 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:35302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXXh8-0008N5-JM for qemu-devel@nongnu.org; Thu, 03 Sep 2015 12:49:02 -0400 Received: by wicge5 with SMTP id ge5so80405462wic.0 for ; Thu, 03 Sep 2015 09:49:01 -0700 (PDT) Date: Thu, 3 Sep 2015 17:48:58 +0100 From: Stefan Hajnoczi Message-ID: <20150903164858.GE18405@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] where can i customize rbd object size? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jaze Lee Cc: Josh Durgin , qemu-devel@nongnu.org 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 > > (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. I have CCed the rbd.c maintainer for you: $ scripts/get_maintainer.pl -f block/rbd.c Josh Durgin (supporter:RBD)