qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 11/16] block/parallels: add support for backing


From: Roman Kagan
Subject: Re: [Qemu-devel] [PATCH 11/16] block/parallels: add support for backing files
Date: Mon, 15 Dec 2014 16:08:03 +0300
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Dec 15, 2014 at 01:30:03PM +0100, Kevin Wolf wrote:
> Am 15.12.2014 um 09:27 hat Denis V. Lunev geschrieben:
> > From: Roman Kagan <address@hidden>
> > 
> > Add backing file support to Parallels format driver.
> > 
> > That said, I think backing file operations should end up in the generic
> > block layer, but that's a longer story...
> > 
> > Signed-off-by: Roman Kagan <address@hidden>
> > Signed-off-by: Denis V. Lunev <address@hidden>
> > CC: Jeff Cody <address@hidden>
> > CC: Kevin Wolf <address@hidden>
> > CC: Stefan Hajnoczi <address@hidden>
> 
> How are users supposed to make use of this? bs->backing_file isn't set
> during parallels_open(), so you generally dont' get a backing file.
> 
> Users might manually add -drive backing=..., but is there really no
> support for storing the backing file in the image format? If so, perhaps
> it's better not to support backing files at all here.

Parallels virtual disks (as also used by ploop, http://openvz.org/Ploop)
consist of a descriptor xml file and one or more data files.  The
data files may have delta/backing relationships; those relationships are
only stored in the descriptor file.

The original parallels driver in qemu used to support direct access to
the data files.  This patch makes it possible for such a data file to be
a delta WRT a backing file, specified externally (see e.g. the patch to
the tests).

The code for parsing the descriptor xml and filling in the delta/backing
relations isn't there yet; we haven't yet figured out where it fits
best.  Still it makes up a perfectly valid usecase to figure out those
relations by some external means (e.g. eye inspection of the descriptor
file :) and construct appropriate JSON filename for use in any scenario
where a readonly image can be used in qemu.

Roman.



reply via email to

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