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: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH] qcow3 - arbitrary metadata
Date: Tue, 29 Jul 2008 01:04:52 +0200


Le 28 juil. 08 à 21:56, Nathaniel McCallum a écrit :

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.

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
<qcow3.patch><qcow2-qcow3.patch>

I think this has already been tried exactly one year ago modifying snapshot...

http://www.mail-archive.com/address@hidden/msg05103.html

but now Fabrice is working on a configuration file, perhaps you can store your metadata in it.

Cheers,
Laurent
----------------------- Laurent Vivier ----------------------
"The best way to predict the future is to invent it."
- Alan Kay









reply via email to

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