[virt-tools-list] [libosinfo] Add Windows OS metadata
Daniel P. Berrange
berrange at redhat.com
Fri Jun 17 14:16:43 UTC 2011
On Fri, Jun 17, 2011 at 05:08:56PM +0300, Zeeshan Ali wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
>
> ---
> data/oses/Makefile.am | 3 +-
> data/oses/windows.xml | 72 +++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 74 insertions(+), 1 deletions(-)
> create mode 100644 data/oses/windows.xml
>
> diff --git a/data/oses/Makefile.am b/data/oses/Makefile.am
> index 87be72b..7afd1d6 100644
> --- a/data/oses/Makefile.am
> +++ b/data/oses/Makefile.am
> @@ -8,6 +8,7 @@ database_DATA = \
> mandriva.xml \
> debian.xml \
> ubuntu.xml \
> - generic-linux.xml
> + generic-linux.xml \
> + windows.xml
>
> EXTRA_DIST = $(database_DATA)
> diff --git a/data/oses/windows.xml b/data/oses/windows.xml
> new file mode 100644
> index 0000000..60cb913
> --- /dev/null
> +++ b/data/oses/windows.xml
> @@ -0,0 +1,72 @@
> +<libosinfo version="0.0.1">
> +
> + <os id="http://microsoft.com/windows">
> + <short-id>windows</short-id>
> + <name>Microsoft Windows</name>
> + <!-- Version is dummy here because this is just a generic entry -->
> + <version>1</version>
Can we just leave out <version> entirely here, or is
the parser mandating it ?
> + <vendor>Microsoft</vendor>
> +
> + <devices>
> + <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1234/1111"/>
> + <device id="http://www.linux-usb.org/usb.ids/80ee/0021"/>
> + </devices>
> + </os>
> +
> + <os id="http://microsoft.com/winxp">
> + <short-id>winxp</short-id>
> + <name>Microsoft Windows XP</name>
> + <version>5.1</version>
> + <vendor>Microsoft</vendor>
> + <derives id="http://microsoft.com/windows"/>
> + </os>
> +
> + <os id="http://microsoft.com/winxp64">
> + <short-id>winxp64</short-id>
> + <name>Microsoft Windows XP (x86_64)</name>
> + <version>5.2</version>
> + <vendor>Microsoft</vendor>
> + <derives id="http://microsoft.com/windows"/>
> + </os>
> +
> + <os id="http://microsoft.com/win2k">
> + <short-id>win2k</short-id>
> + <name>Microsoft Windows 2000</name>
> + <version>5.0</version>
> + <vendor>Microsoft</vendor>
> + <derives id="http://microsoft.com/windows"/>
> + </os>
> +
> + <os id="http://microsoft.com/win2k3">
> + <short-id>win2k3</short-id>
> + <name>Microsoft Windows Server 2003</name>
> + <version>5.2</version>
> + <vendor>Microsoft</vendor>
> + <derives id="http://microsoft.com/windows"/>
> + </os>
> +
> + <os id="http://microsoft.com/win2k8">
> + <short-id>win2k8</short-id>
> + <name>Microsoft Windows Server 2008</name>
> + <version>6.0</version>
> + <vendor>Microsoft</vendor>
> + <derives id="http://microsoft.com/windows"/>
> + </os>
> +
> + <os id="http://microsoft.com/vista">
> + <short-id>vista</short-id>
> + <name>Microsoft Windows Vista</name>
> + <version>6.0</version>
> + <vendor>Microsoft</vendor>
> + <derives id="http://microsoft.com/windows"/>
> + </os>
> +
> + <os id="http://microsoft.com/win7">
> + <short-id>win7</short-id>
> + <name>Microsoft Windows 7</name>
> + <version>6.1</version>
> + <vendor>Microsoft</vendor>
> + <derives id="http://microsoft.com/windows"/>
> + </os>
The <derives> look ok, but we do still also want <upgrades> to
express the relation between the versions
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the virt-tools-list
mailing list