From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nr7TE-0003lN-8A for qemu-devel@nongnu.org; Mon, 15 Mar 2010 06:24:24 -0400 Received: from [199.232.76.173] (port=46325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nr7TC-0003lE-OA for qemu-devel@nongnu.org; Mon, 15 Mar 2010 06:24:22 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nr7TC-0006et-2t for qemu-devel@nongnu.org; Mon, 15 Mar 2010 06:24:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33008) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nr7TB-0006ef-Ml for qemu-devel@nongnu.org; Mon, 15 Mar 2010 06:24:21 -0400 Message-ID: <4B9E0AAA.3090307@redhat.com> Date: Mon, 15 Mar 2010 11:23:38 +0100 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] -fda fat:dir -snapshot References: <4B9BE4F1.6030202@msgid.tls.msk.ru> In-Reply-To: <4B9BE4F1.6030202@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-devel Am 13.03.2010 20:18, schrieb Michael Tokarev: > Apparently this does not work, and for a loooong time: > > $ kvm -fda fat:dir > [ it opens the sdl window ] > $ kvm -fda fat:dir -snapshot > qemu: could not open disk image fat:dir: No such file or directory > > Is it supposed to work? Wow, that's a crazy case. I guess nobody has ever tested this, and indeed it looks like it never has worked. As you might know, -snapshot internally creates a temporary qcow2 image which takes the image you originally asked for as a backing file. So we have a qcow2 file with a backing file tmp:dir. Now, backing file paths are always resolved relative to the COW file, so we get /tmp/fat:dir. Oops. We could just disable this for protocols as a quick fix, but I think in fact you do want to have this behaviour when using protocols as a backing file for a persistent COW image. I guess this needs some more thought, especially in respect to the discussions of making file/host_device/... protocols. If you really have a use case for this, you can use an absolute path after fat: as a workaround, it won't touch the path then. Kevin