qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qcow3 - arbitrary metadata


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] qcow3 - arbitrary metadata
Date: Mon, 28 Jul 2008 15:08:50 -0500
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Nathaniel McCallum wrote:
A project I'm working on requires the ability to store arbitrary metadata in the VM disk image. Thus, here is a patch that implements that as qcow3. It basically replaces the header.backing_store_{offset|size} with header.metadata_{offset|size}. Metadata is then defined as NULL-byte separated 'key:value' pairs. The attached qcow3 then stores the backing file as 'Backing-File:/home/me/backing_file.img' in the metadata section. I've included two patches. One is the full patch against the latest SVN (qcow3.patch). The second patch is just the diff between qcow2.c and qcow3.c so that you can easily see the changes.

Can you provide more information about what the metadata is used for and why it's so important for the metadata to be in the image verses in a separate file?

There are other possible ways of doing this that are less invasive. For instance, you could have a fake snapshot in the image that just contained your key values pairs.

Introducing a whole new format is a pretty big change especially since you're duplicating a ton of code.

Regards,

Anthony Liguori

I've also wondered if it might be possible to backport these changes into qcow2 instead of qcow3. However, this would break older versions of qemu that claim to support qcow2.

Nathaniel





reply via email to

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