direct-io.hg

changeset 12160:1697ee515e46

The on-wire names for the fields should be exactly as documented, including
case.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Oct 28 11:41:55 2006 +0100 (2006-10-28)
parents f884e94474ba
children 0db0c19d3386
files tools/libxen/src/xen_host.c tools/libxen/src/xen_network.c tools/libxen/src/xen_pif.c tools/libxen/src/xen_sr.c tools/libxen/src/xen_vbd.c tools/libxen/src/xen_vdi.c tools/libxen/src/xen_vif.c tools/libxen/src/xen_vm.c tools/libxen/src/xen_vtpm.c
line diff
     1.1 --- a/tools/libxen/src/xen_host.c	Sat Oct 28 11:21:35 2006 +0100
     1.2 +++ b/tools/libxen/src/xen_host.c	Sat Oct 28 11:41:55 2006 +0100
     1.3 @@ -52,13 +52,13 @@ static const struct_member xen_host_reco
     1.4          { .key = "software_version",
     1.5            .type = &abstract_type_string_string_map,
     1.6            .offset = offsetof(xen_host_record, software_version) },
     1.7 -        { .key = "resident_vms",
     1.8 +        { .key = "resident_VMs",
     1.9            .type = &abstract_type_ref_set,
    1.10            .offset = offsetof(xen_host_record, resident_vms) },
    1.11 -        { .key = "pifs",
    1.12 +        { .key = "PIFs",
    1.13            .type = &abstract_type_ref_set,
    1.14            .offset = offsetof(xen_host_record, pifs) },
    1.15 -        { .key = "host_cpus",
    1.16 +        { .key = "host_CPUs",
    1.17            .type = &abstract_type_ref_set,
    1.18            .offset = offsetof(xen_host_record, host_cpus) }
    1.19      };
     2.1 --- a/tools/libxen/src/xen_network.c	Sat Oct 28 11:21:35 2006 +0100
     2.2 +++ b/tools/libxen/src/xen_network.c	Sat Oct 28 11:41:55 2006 +0100
     2.3 @@ -47,10 +47,10 @@ static const struct_member xen_network_r
     2.4          { .key = "name_description",
     2.5            .type = &abstract_type_string,
     2.6            .offset = offsetof(xen_network_record, name_description) },
     2.7 -        { .key = "vifs",
     2.8 +        { .key = "VIFs",
     2.9            .type = &abstract_type_ref_set,
    2.10            .offset = offsetof(xen_network_record, vifs) },
    2.11 -        { .key = "pifs",
    2.12 +        { .key = "PIFs",
    2.13            .type = &abstract_type_ref_set,
    2.14            .offset = offsetof(xen_network_record, pifs) },
    2.15          { .key = "default_gateway",
     3.1 --- a/tools/libxen/src/xen_pif.c	Sat Oct 28 11:21:35 2006 +0100
     3.2 +++ b/tools/libxen/src/xen_pif.c	Sat Oct 28 11:41:55 2006 +0100
     3.3 @@ -50,13 +50,13 @@ static const struct_member xen_pif_recor
     3.4          { .key = "host",
     3.5            .type = &abstract_type_ref,
     3.6            .offset = offsetof(xen_pif_record, host) },
     3.7 -        { .key = "mac",
     3.8 +        { .key = "MAC",
     3.9            .type = &abstract_type_string,
    3.10            .offset = offsetof(xen_pif_record, mac) },
    3.11 -        { .key = "mtu",
    3.12 +        { .key = "MTU",
    3.13            .type = &abstract_type_int,
    3.14            .offset = offsetof(xen_pif_record, mtu) },
    3.15 -        { .key = "vlan",
    3.16 +        { .key = "VLAN",
    3.17            .type = &abstract_type_string,
    3.18            .offset = offsetof(xen_pif_record, vlan) },
    3.19          { .key = "io_read_kbs",
     4.1 --- a/tools/libxen/src/xen_sr.c	Sat Oct 28 11:21:35 2006 +0100
     4.2 +++ b/tools/libxen/src/xen_sr.c	Sat Oct 28 11:41:55 2006 +0100
     4.3 @@ -46,7 +46,7 @@ static const struct_member xen_sr_record
     4.4          { .key = "name_description",
     4.5            .type = &abstract_type_string,
     4.6            .offset = offsetof(xen_sr_record, name_description) },
     4.7 -        { .key = "vdis",
     4.8 +        { .key = "VDIs",
     4.9            .type = &abstract_type_ref_set,
    4.10            .offset = offsetof(xen_sr_record, vdis) },
    4.11          { .key = "virtual_allocation",
     5.1 --- a/tools/libxen/src/xen_vbd.c	Sat Oct 28 11:21:35 2006 +0100
     5.2 +++ b/tools/libxen/src/xen_vbd.c	Sat Oct 28 11:41:55 2006 +0100
     5.3 @@ -43,10 +43,10 @@ static const struct_member xen_vbd_recor
     5.4          { .key = "uuid",
     5.5            .type = &abstract_type_string,
     5.6            .offset = offsetof(xen_vbd_record, uuid) },
     5.7 -        { .key = "vm",
     5.8 +        { .key = "VM",
     5.9            .type = &abstract_type_ref,
    5.10            .offset = offsetof(xen_vbd_record, vm) },
    5.11 -        { .key = "vdi",
    5.12 +        { .key = "VDI",
    5.13            .type = &abstract_type_ref,
    5.14            .offset = offsetof(xen_vbd_record, vdi) },
    5.15          { .key = "device",
     6.1 --- a/tools/libxen/src/xen_vdi.c	Sat Oct 28 11:21:35 2006 +0100
     6.2 +++ b/tools/libxen/src/xen_vdi.c	Sat Oct 28 11:41:55 2006 +0100
     6.3 @@ -48,10 +48,10 @@ static const struct_member xen_vdi_recor
     6.4          { .key = "name_description",
     6.5            .type = &abstract_type_string,
     6.6            .offset = offsetof(xen_vdi_record, name_description) },
     6.7 -        { .key = "sr",
     6.8 +        { .key = "SR",
     6.9            .type = &abstract_type_ref,
    6.10            .offset = offsetof(xen_vdi_record, sr) },
    6.11 -        { .key = "vbds",
    6.12 +        { .key = "VBDs",
    6.13            .type = &abstract_type_ref_set,
    6.14            .offset = offsetof(xen_vdi_record, vbds) },
    6.15          { .key = "virtual_size",
     7.1 --- a/tools/libxen/src/xen_vif.c	Sat Oct 28 11:21:35 2006 +0100
     7.2 +++ b/tools/libxen/src/xen_vif.c	Sat Oct 28 11:41:55 2006 +0100
     7.3 @@ -54,13 +54,13 @@ static const struct_member xen_vif_recor
     7.4          { .key = "network",
     7.5            .type = &abstract_type_ref,
     7.6            .offset = offsetof(xen_vif_record, network) },
     7.7 -        { .key = "vm",
     7.8 +        { .key = "VM",
     7.9            .type = &abstract_type_ref,
    7.10            .offset = offsetof(xen_vif_record, vm) },
    7.11 -        { .key = "mac",
    7.12 +        { .key = "MAC",
    7.13            .type = &abstract_type_string,
    7.14            .offset = offsetof(xen_vif_record, mac) },
    7.15 -        { .key = "mtu",
    7.16 +        { .key = "MTU",
    7.17            .type = &abstract_type_int,
    7.18            .offset = offsetof(xen_vif_record, mtu) },
    7.19          { .key = "io_read_kbs",
     8.1 --- a/tools/libxen/src/xen_vm.c	Sat Oct 28 11:21:35 2006 +0100
     8.2 +++ b/tools/libxen/src/xen_vm.c	Sat Oct 28 11:41:55 2006 +0100
     8.3 @@ -120,19 +120,19 @@ static const struct_member xen_vm_record
     8.4          { .key = "actions_after_crash",
     8.5            .type = &xen_on_crash_behaviour_abstract_type_,
     8.6            .offset = offsetof(xen_vm_record, actions_after_crash) },
     8.7 -        { .key = "vifs",
     8.8 +        { .key = "VIFs",
     8.9            .type = &abstract_type_ref_set,
    8.10            .offset = offsetof(xen_vm_record, vifs) },
    8.11 -        { .key = "vbds",
    8.12 +        { .key = "VBDs",
    8.13            .type = &abstract_type_ref_set,
    8.14            .offset = offsetof(xen_vm_record, vbds) },
    8.15 -        { .key = "vtpms",
    8.16 +        { .key = "VTPMs",
    8.17            .type = &abstract_type_ref_set,
    8.18            .offset = offsetof(xen_vm_record, vtpms) },
    8.19          { .key = "bios_boot",
    8.20            .type = &abstract_type_string,
    8.21            .offset = offsetof(xen_vm_record, bios_boot) },
    8.22 -        { .key = "platform_std_vga",
    8.23 +        { .key = "platform_std_VGA",
    8.24            .type = &abstract_type_bool,
    8.25            .offset = offsetof(xen_vm_record, platform_std_vga) },
    8.26          { .key = "platform_serial",
    8.27 @@ -165,13 +165,13 @@ static const struct_member xen_vm_record
    8.28          { .key = "grub_cmdline",
    8.29            .type = &abstract_type_string,
    8.30            .offset = offsetof(xen_vm_record, grub_cmdline) },
    8.31 -        { .key = "pci_bus",
    8.32 +        { .key = "PCI_bus",
    8.33            .type = &abstract_type_string,
    8.34            .offset = offsetof(xen_vm_record, pci_bus) },
    8.35          { .key = "tools_version",
    8.36            .type = &abstract_type_string_string_map,
    8.37            .offset = offsetof(xen_vm_record, tools_version) },
    8.38 -        { .key = "otherconfig",
    8.39 +        { .key = "otherConfig",
    8.40            .type = &abstract_type_string_string_map,
    8.41            .offset = offsetof(xen_vm_record, otherconfig) }
    8.42      };
     9.1 --- a/tools/libxen/src/xen_vtpm.c	Sat Oct 28 11:21:35 2006 +0100
     9.2 +++ b/tools/libxen/src/xen_vtpm.c	Sat Oct 28 11:41:55 2006 +0100
     9.3 @@ -42,7 +42,7 @@ static const struct_member xen_vtpm_reco
     9.4          { .key = "uuid",
     9.5            .type = &abstract_type_string,
     9.6            .offset = offsetof(xen_vtpm_record, uuid) },
     9.7 -        { .key = "vm",
     9.8 +        { .key = "VM",
     9.9            .type = &abstract_type_ref,
    9.10            .offset = offsetof(xen_vtpm_record, vm) },
    9.11          { .key = "backend",