Received: from eggs.gnu.org ([2001:4830:134:3::10]:37395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSNGR-0001VC-Us for qemu-devel@nongnu.org; Fri, 12 Sep 2014 05:35:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSNGL-0002QB-Og for qemu-devel@nongnu.org; Fri, 12 Sep 2014 05:35:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSNGL-0002Py-D5 for qemu-devel@nongnu.org; Fri, 12 Sep 2014 05:35:29 -0400 Date: Fri, 12 Sep 2014 17:35:13 +0800 From: Fam Zheng Message-ID: <20140912093513.GA10170@fam-t430.nay.redhat.com> References: <5412B563.2060307@ilande.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5412B563.2060307@ilande.co.uk> Subject: Re: [Qemu-devel] qemu-img: unable to convert raw image > 2GB with git master List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland Cc: qemu-devel On Fri, 09/12 09:57, Mark Cave-Ayland wrote: > Hi all, > > I've been trying to convert a raw disk partition from my laptop for use on > VMWare player and I'm seeing the following error from qemu-img git master > during conversion: > > # qemu-img convert -f raw -O vmdk /dev/mapper/vm-raw out.vmdk > qemu-img: error while writing sector 4247552: Invalid argument > > A quick glance at the resulting output file makes me thing that an > artificial 2GB limit has accidentally been introduced: > > # ls -l | grep out.vmdk > -rw-r--r-- 1 root root 2147483648 Sep 12 09:49 out.vmdk > > Can anyone else reproduce this? The input /dev/mapper/vm-raw is simply a raw > 4GB LVM partition on my local disk which is mapped through as a standard > hard disk into QEMU. > Yes, I can reproduce it easily: $ ~/build/master/qemu-io /stor/vm/arch.vmdk -c 'write 2G 1k' write failed: Invalid argument This is a regression, I'll send a patch to fix it shortly. Thanks, Fam