[libvirt] [PATCH] Enable probing of VPC disk format type
Eric Blake
eblake at redhat.com
Tue Jun 8 15:27:55 UTC 2010
On 06/08/2010 09:06 AM, Daniel P. Berrange wrote:
> A look at the QEMU source revealed the missing bits of info about
> the VPC file format, so we can enable this now
>
> * src/util/storage_file.c: Enable VPC format, providing version
> and disk size offset fields
> ---
> src/util/storage_file.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/src/util/storage_file.c b/src/util/storage_file.c
> index b3ae905..6cc8d5f 100644
> --- a/src/util/storage_file.c
> +++ b/src/util/storage_file.c
> @@ -135,11 +135,9 @@ static struct FileTypeInfo const fileTypeInfo[] = {
> LV_LITTLE_ENDIAN, 4, 1,
> 4+4+4, 8, 512, -1, vmdk4GetBackingStore },
> /* Connectix / VirtualPC */
> - /* XXX Untested
> { VIR_STORAGE_FILE_VPC, "conectix", NULL,
> - LV_BIG_ENDIAN, -1, 0,
> - -1, 0, 0, -1, NULL},
> - */
> + LV_BIG_ENDIAN, 12, 0x10000,
> + 8 + 4 + 4 + 8 + 4 + 4 + 2 + 2 + 4, 8, 1, -1, NULL},
ACK, looks reasonable, once I found the corresponding code in
qemu/block/vpc.c that matches these numbers.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100608/15b580e3/attachment-0001.sig>
More information about the libvir-list
mailing list