From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj3uP-0006Zz-52 for qemu-devel@nongnu.org; Thu, 24 Mar 2016 07:58:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj3uL-0001MR-T7 for qemu-devel@nongnu.org; Thu, 24 Mar 2016 07:58:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj3uL-0001MN-OT for qemu-devel@nongnu.org; Thu, 24 Mar 2016 07:58:33 -0400 References: <1458742562-30624-1-git-send-email-den@openvz.org> <1458742562-30624-3-git-send-email-den@openvz.org> <20160323175834.GC2467@grep.be> <20160324084318.GC24831@phobos.sw.ru> <20160324093315.GA2870@grep.be> <433C735B-1BAE-47DA-9543-2E5BA2710357@alex.org.uk> From: Paolo Bonzini Message-ID: <56F3D664.9010700@redhat.com> Date: Thu, 24 Mar 2016 12:58:28 +0100 MIME-Version: 1.0 In-Reply-To: <433C735B-1BAE-47DA-9543-2E5BA2710357@alex.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Nbd] [PATCH 2/2] NBD proto: add GET_LBA_STATUS extension List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh , Wouter Verhelst Cc: "nbd-general@lists.sourceforge.net" , Kevin Wolf , "qemu-devel@nongnu.org" , Pavel Borzenkov , "Stefan stefanha@redhat. com" , "Denis V. Lunev" On 24/03/2016 11:32, Alex Bligh wrote: >> > Now I'm not saying we >> > need to fully define what it means for a part of the backend to be >> > "dirty" or not. It's okay to leave part of the meaning in the dark, >> > leaving that implementation-defined. > Well, the 3 possible states are: >=20 > * unallocated > * zero > * non-zero >=20 > So the possible replies are a bitfield of those, with a '1' if it 'migh= t' > be in that state, i.e. >=20 > 111 =3D no idea > 110 =3D might be zero or unallocated, but isn't zero > 011 =3D I know it's allocated, but I don't know whether it is zero or n= ot How do you represent "definitely unallocated?" Paolo > And '000' is not permitted!