From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Lokier Subject: qcow2 relative paths (was: [PATCH] rev5: support colon in filenames) Date: Wed, 15 Jul 2009 22:04:59 +0100 Message-ID: <20090715210459.GJ3056@shareable.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kiszka , Kevin Wolf , Anthony Liguori , qemu-devel@nongnu.org, kvm-devel To: Ram Pai Return-path: Received: from mail2.shareable.org ([80.68.89.115]:35824 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932323AbZGOVFH (ORCPT ); Wed, 15 Jul 2009 17:05:07 -0400 Content-Disposition: inline In-Reply-To: <1247683475.14246.90.camel@localhost> Sender: kvm-owner@vger.kernel.org List-ID: 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 > case that I can verify. Commands tried with qemu-0.10.0-1ubuntu1: $ mkdir unlikely_subdir $ cd unlikely_subdir $ qemu-img create -f qcow2 backing.img 10 Formatting 'backing.img', fmt=qcow2, size=10 kB $ qemu-img create -f qcow2 -b ../unlikely_subdir/backing.img main.img 10 Formatting 'main.img', fmt=qcow2, backing_file=../unlikely_subdir/backing.img, size=10 kB $ cd .. $ qemu-img info unlikely_subdir/main.img 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_subdir/../unlikely_subdir/backing.img) See especially the "actual path" line. $ 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 qemu-img: Could not open 'other_subdir/main.img' What an unhelpful error message... There isn't even a way to find out the backing file path which the tool is looking for. > And one other thing. Let me know if there a test-suite that I can try > for regressions. Sorry, I don't know anything about any QEMU test suites. -- Jamie