From: Kevin Wolf <kwolf@redhat.com>
To: Zhi Hui Li <zhihuili@linux.vnet.ibm.com>
Cc: zhihuili@cn.ibm.com,
Stefan Hajnoczi cowcoww <stefanha@linux.vnet.ibm.com>,
QEMU-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] backing_file Path
Date: Mon, 07 Nov 2011 10:17:32 +0100 [thread overview]
Message-ID: <4EB7A22C.4000006@redhat.com> (raw)
In-Reply-To: <4EB78CE9.4030305@linux.vnet.ibm.com>
Am 07.11.2011 08:46, schrieb Zhi Hui Li:
>
> when I trace the code of qemu-img.c, I found in the image file, the
> backing_file use the relative path, I think Maybe it has some problems.
>
> for example:
>
> 1: qemu-img create -o backing_file=../xxxx aa.img 5G
>
> 2: qemu-system-x86_64 aa.img
>
> if you change aa.img's the path, the exec is wrong,it can't find the
> backing_file path, because the backing_file use the relative path,
> Could we change the relative path to the absolute path?
No, we can't. That would break compatibility of qemu-img create with
older versions. Relative paths have well-defined semantics, they are
relative to the image file.
Kevin
next prev parent reply other threads:[~2011-11-07 9:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-07 7:46 [Qemu-devel] backing_file Path Zhi Hui Li
2011-11-07 9:17 ` Kevin Wolf [this message]
2011-11-07 15:03 ` Markus Armbruster
[not found] ` <4EB89ED1.90307@linux.vnet.ibm.com>
[not found] ` <m3bosnnlsp.fsf@blackfin.pond.sub.org>
2011-11-14 5:47 ` [Qemu-devel] I have some questions in block , can anyone help me, thank you! Zhi Hui Li
2011-11-14 10:00 ` Stefan Hajnoczi
2011-11-15 6:56 ` Zhi Hui Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EB7A22C.4000006@redhat.com \
--to=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
--cc=zhihuili@cn.ibm.com \
--cc=zhihuili@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.