From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoB7J-0007c3-Uo for qemu-devel@nongnu.org; Thu, 07 Apr 2016 10:41:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoB7F-0005la-6L for qemu-devel@nongnu.org; Thu, 07 Apr 2016 10:41:05 -0400 Sender: Paolo Bonzini References: <1459264128-12761-1-git-send-email-kwolf@redhat.com> <1459264128-12761-49-git-send-email-kwolf@redhat.com> From: Paolo Bonzini Message-ID: <57067179.7060401@redhat.com> Date: Thu, 7 Apr 2016 16:40:57 +0200 MIME-Version: 1.0 In-Reply-To: <1459264128-12761-49-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 48/48] iotests: Test qemu-img convert -S 0 behavior List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org On 29/03/2016 17:08, Kevin Wolf wrote: > From: Max Reitz > > Passing -S 0 to qemu-img convert should result in all source data being > copied to the output, even if that source data is known to be 0. The > output image should therefore have exactly the same size on disk as an > image which we explicitly filled with data. > > Signed-off-by: Max Reitz > Reviewed-by: Fam Zheng > Signed-off-by: Kevin Wolf This fails with XFS and raw format, which preallocates an extra cluster at the end of the file created with qemu-io (so that the on-disk size is 2056 512-byte blocks). Paolo