From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuefp-0001cY-K8 for qemu-devel@nongnu.org; Thu, 04 Jul 2013 04:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uuefl-0004sI-2e for qemu-devel@nongnu.org; Thu, 04 Jul 2013 04:13:53 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:51657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuefk-0004re-R5 for qemu-devel@nongnu.org; Thu, 04 Jul 2013 04:13:48 -0400 Received: by mail-wi0-f173.google.com with SMTP id hq4so6028559wib.6 for ; Thu, 04 Jul 2013 01:13:48 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <51D52EB3.2000508@redhat.com> Date: Thu, 04 Jul 2013 10:13:39 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1372862071-28225-1-git-send-email-pbonzini@redhat.com> <1372862071-28225-11-git-send-email-pbonzini@redhat.com> <5B1A6BCB-5A72-4A2F-A1D3-5DEDA9FB59D2@kamp.de> In-Reply-To: <5B1A6BCB-5A72-4A2F-A1D3-5DEDA9FB59D2@kamp.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 10/17] block: define get_block_status return value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Il 03/07/2013 23:04, Peter Lieven ha scritto: >> > Define the return value of get_block_status. Bits 0, 1, 2 and 8-62 >> > are valid; bit 63 (the sign bit) is reserved for errors. Bits 3-7 >> > are left for future extensions. > Is Bit 8 not also reserved for future use? BDRV_SECTOR_BITS is 9. Right. > Can you explain which information is exactly returned in Bits 9-62? Bits 9-62 are the offset at which the data is stored in bs->file, they are valid if bit 2 (BDRV_BLOCK_OFFSET_VALID) is 1. Paolo