From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPpPY-0006Y8-RW for qemu-devel@nongnu.org; Mon, 14 Nov 2011 00:48:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPpPX-0000XL-Vd for qemu-devel@nongnu.org; Mon, 14 Nov 2011 00:48:52 -0500 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:44895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPpPU-0000Wo-5C for qemu-devel@nongnu.org; Mon, 14 Nov 2011 00:48:51 -0500 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 Nov 2011 11:17:53 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAE5ljD84804858 for ; Mon, 14 Nov 2011 11:17:45 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAE5ljlR009070 for ; Mon, 14 Nov 2011 16:47:45 +1100 Message-ID: <4EC0AB7D.2020807@linux.vnet.ibm.com> Date: Mon, 14 Nov 2011 13:47:41 +0800 From: Zhi Hui Li MIME-Version: 1.0 References: <4EB78CE9.4030305@linux.vnet.ibm.com> <4EB89ED1.90307@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] I have some questions in block , can anyone help me, thank you! List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU-devel Cc: Stefan Hajnoczi , Markus Armbruster questions: 1) In qcow2.c, in function: qcow2_co_readv In qcow2.h, in struct BDRVQcowState I want to know the relations between sector_num in function qcow2_co_readv and cluster_sectors in struct BDRVQcowState ? 2) In qcow2.c, in function; qcow2_co_writev at line 547: index_in_cluster = sector_num & (s->cluster_sectors - 1); How to understand it ? 3) In qcow2.c, in the function : qcow2_co_readv and qcow2_co_writev I want to know the least unit that it was read by the function. for example: BDRVQcowState s; Is s->cluster_size or 512 ? Thank you very much ! Best regards!