Received: from eggs.gnu.org ([2001:4830:134:3::10]:49667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3iRA-0007fF-S5 for qemu-devel@nongnu.org; Mon, 07 Nov 2016 06:50:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3iR7-0000Dl-Mo for qemu-devel@nongnu.org; Mon, 07 Nov 2016 06:50:04 -0500 Received: from indium.canonical.com ([91.189.90.7]:51456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3iR7-0000DU-HV for qemu-devel@nongnu.org; Mon, 07 Nov 2016 06:50:01 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1c3iR4-0007mn-Qx for ; Mon, 07 Nov 2016 11:49:59 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 06E552E818F for ; Mon, 7 Nov 2016 11:49:57 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 07 Nov 2016 11:30:52 -0000 From: Robie Basak <1410288@bugs.launchpad.net> Reply-To: Bug 1410288 <1410288@bugs.launchpad.net> Sender: bounces@canonical.com References: <20150113143936.23767.65354.malonedeb@gac.canonical.com> Message-Id: <20161107113052.30001.75160.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1410288] Re: qemu-img conversion to qcow2 hangs with blank image less than 100kiB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org qemu is 2.5 in 16.04 and 2.6.1 in Zesty, so this is presumably Fix Released now. If incorrect, please explain and reopen. ** Changed in: qemu (Ubuntu) Status: Triaged =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1410288 Title: qemu-img conversion to qcow2 hangs with blank image less than 100kiB Status in QEMU: Fix Released Status in qemu package in Ubuntu: Fix Released Bug description: If you try to convert a blank image to qcow2 that is less than 100kiB in size then qemu-img hangs trying to seek to the end of the file. $ truncate --size 102399 /tmp/temp $ qemu-img convert -p -O qcow2 /tmp/temp /tmp/temp2.qcow2 I'm finding this on all versions of qemu-img v2. strace shows a seek loop. ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ioctl(6, FS_IOC_FIEMAP, 0xb5e68dc4) =3D 0 _llseek(6, 0, [100000], SEEK_END) =3D 0 ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: qemu-utils 2.0.0+dfsg-2ubuntu1.10 ProcVersionSignature: User Name 3.13.0-43.72-generic 3.13.11.11 Uname: Linux 3.13.0-43-generic i686 ApportVersion: 2.14.1-0ubuntu3.6 Architecture: i386 Date: Tue Jan 13 14:30:39 2015 SourcePackage: qemu UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1410288/+subscriptions