Received: from eggs.gnu.org ([2001:4830:134:3::10]:45134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHVVh-0003xg-Pu for qemu-devel@nongnu.org; Mon, 27 Jun 2016 08:19:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHVVf-0005ge-Ve for qemu-devel@nongnu.org; Mon, 27 Jun 2016 08:19:28 -0400 References: <1466740739-7240-1-git-send-email-eblake@redhat.com> <1466740739-7240-3-git-send-email-eblake@redhat.com> From: Paolo Bonzini Message-ID: <5a03a995-2be3-66cc-89af-c3b4f42c3568@redhat.com> Date: Mon, 27 Jun 2016 14:19:16 +0200 MIME-Version: 1.0 In-Reply-To: <1466740739-7240-3-git-send-email-eblake@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] raw_bsd: Convert to byte-based interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, Max Reitz On 24/06/2016 05:58, Eric Blake wrote: > Since the raw format driver is just passing things through, we can > do byte-based read and write if the underlying protocol does > likewise. > > There's one tricky part - if we probed the image format, we document > that we restrict operations on the initial sector. Rather than > trying to handle a read-modify-write on the first sector, it's > easiest to just include in our restrictions that partial writes to > the first sector are not permitted. Can we just set the alignment to at least 512 if probed? It's the practical guest alignment anyway. Paolo