From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRBoG-0007sp-Ns for qemu-devel@nongnu.org; Wed, 15 Jul 2009 17:14:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRBoB-0007pS-Ij for qemu-devel@nongnu.org; Wed, 15 Jul 2009 17:14:39 -0400 Received: from [199.232.76.173] (port=55969 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRBoB-0007p9-CT for qemu-devel@nongnu.org; Wed, 15 Jul 2009 17:14:35 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:42624) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRBoA-0006Sf-PQ for qemu-devel@nongnu.org; Wed, 15 Jul 2009 17:14:35 -0400 Message-ID: <4A5E46B8.8040901@web.de> Date: Wed, 15 Jul 2009 23:14:32 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1246511321.6429.31.camel@localhost> <4A4C754D.10109@redhat.com> <4A4CAD86.9020607@us.ibm.com> <4A4CB39F.5070506@redhat.com> <1247041831.6297.12.camel@localhost> <1247644283.14246.3.camel@localhost> <4A5DA1B7.5000204@siemens.com> <1247677395.14246.38.camel@localhost> <20090715182025.GC3056@shareable.org> <1247683475.14246.90.camel@localhost> <20090715210459.GJ3056@shareable.org> In-Reply-To: <20090715210459.GJ3056@shareable.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5C161F95DB62CBE369E6A42B" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: qcow2 relative paths List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Kevin Wolf , Anthony Liguori , Ram Pai , qemu-devel@nongnu.org, kvm-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5C161F95DB62CBE369E6A42B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jamie Lokier wrote: > Ram Pai wrote: >> I have successfully verified qcow2 files. But then I may not be trying= >> out the exact thing that you are talking about. Can you give me a test= =20 >> case that I can verify. >=20 > Commands tried with qemu-0.10.0-1ubuntu1: >=20 > $ mkdir unlikely_subdir > $ cd unlikely_subdir > $ qemu-img create -f qcow2 backing.img 10 > Formatting 'backing.img', fmt=3Dqcow2, size=3D10 kB > $ qemu-img create -f qcow2 -b ../unlikely_subdir/backing.img main.img 1= 0 > Formatting 'main.img', fmt=3Dqcow2, backing_file=3D../unlikely_subdir/b= acking.img, size=3D10 kB > $ cd .. > $ qemu-img info unlikely_subdir/main.img=20 > image: unlikely_subdir/main.img > file format: qcow2 > virtual size: 10K (10240 bytes) > disk size: 16K > cluster_size: 4096 > highest_alloc: 16384 > backing file: ../unlikely_subdir/backing.img (actual path: unlikely_sub= dir/../unlikely_subdir/backing.img) >=20 > See especially the "actual path" line. >=20 > $ mv unlikely_subdir other_subdir > $ ls -l other_subdir > total 32 > -rw-r--r-- 1 jamie jamie 16384 2009-07-15 21:59 backing.img > -rw-r--r-- 1 jamie jamie 16384 2009-07-15 21:59 main.img > $ qemu-img info other_subdir/main.img=20 > qemu-img: Could not open 'other_subdir/main.img' >=20 > What an unhelpful error message... There isn't even a way to find out > the backing file path which the tool is looking for. strace :p But I feel your pain. This screams for better error reporting. >=20 >> And one other thing. Let me know if there a test-suite that I can try >> for regressions. >=20 > Sorry, I don't know anything about any QEMU test suites. There is kvm autotest, but that's testing at a coarser level. Well, Anthony promised to push some unit test framework for QEMU... Jan --------------enig5C161F95DB62CBE369E6A42B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkpeRrgACgkQniDOoMHTA+leLwCfUrnaZjF8PfAokZSnOLmsDZZh 2rkAnjwznD8rLX13WsZrFudQINpgGQLh =eIHZ -----END PGP SIGNATURE----- --------------enig5C161F95DB62CBE369E6A42B--