qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] backing_file Path


From: Kevin Wolf
Subject: Re: [Qemu-devel] backing_file Path
Date: Mon, 07 Nov 2011 10:17:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]