search for: guestfs_inspect_get_product_variant

Displaying 17 results from an estimated 17 matches for "guestfs_inspect_get_product_variant".

2011 Mar 23
0
[PATCH] New API: guestfs_inspect_get_product_variant
...//fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw -------------- next part -------------- >From 3f1e3223c491aa057d02c1da418ed896d09fff7c Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones <rjones at redhat.com> Date: Wed, 23 Mar 2011 16:00:48 +0000 Subject: [PATCH] New API: guestfs_inspect_get_product_variant This returns a product variant for inspected operating systems. In practice this is a useful way to distinguish between consumer and enterprise/server versions of Windows that otherwise have the same version number. --- generator/generator_actions.ml | 32 +++++++++++++++++++++++++++++++...
2019 Feb 25
1
[PATCH] inspect: return osinfo short IDs for recent Windows versions
...t;msdos6.22"); } + else if (STREQ (type, "windows")) { + CLEANUP_FREE char *product_name = NULL; + CLEANUP_FREE char *product_variant = NULL; + + product_name = guestfs_inspect_get_product_name (g, root); + if (!product_name) + return NULL; + product_variant = guestfs_inspect_get_product_variant (g, root); + if (!product_variant) + return NULL; + + switch (major) { + case 5: + switch (minor) { + case 1: + return safe_strdup (g, "winxp"); + case 2: + if (strstr (product_name, "XP")) + return safe_strdup (g, "winxp&...
2019 Feb 28
1
[PATCH v2] inspect: return osinfo short IDs for recent Windows versions
...t;msdos6.22"); } + else if (STREQ (type, "windows")) { + CLEANUP_FREE char *product_name = NULL; + CLEANUP_FREE char *product_variant = NULL; + + product_name = guestfs_inspect_get_product_name (g, root); + if (!product_name) + return NULL; + product_variant = guestfs_inspect_get_product_variant (g, root); + if (!product_variant) + return NULL; + + switch (major) { + case 5: + switch (minor) { + case 1: + return safe_strdup (g, "winxp"); + case 2: + if (strstr (product_name, "XP")) + return safe_strdup (g, "winxp&...
2011 Mar 23
1
[PATCH v2v for discussion only] Remove dependency on old Perl inspection code.
It needs a lot more testing, which I'm (slowly) performing on my own machine. Note this also depends on the new guestfs_inspect_get_product_variant API that I posted earlier today. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top...
2018 Oct 04
0
[PATCH v2 3/4] inspector: Use libxml writer macros.
...;, BAD_CAST str)); - free (str); - - str = guestfs_inspect_get_product_name (g, root); - if (!str) exit (EXIT_FAILURE); - if (STRNEQ (str, "unknown")) - XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "product_name", BAD_CAST str)); - free (str); - - str = guestfs_inspect_get_product_variant (g, root); - if (!str) exit (EXIT_FAILURE); - if (STRNEQ (str, "unknown")) - XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "product_variant", BAD_CAST str)); - free (str); - - i = guestfs_inspect_get_major_version (g, root); - snprintf (buf, sizeof buf, &...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of local disk. Rich.
2018 Nov 02
7
[PATCH v3 0/4] common/utils: Move libxml2 writer macros to a common header file.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-October/msg00047.html v2 was here: https://www.redhat.com/archives/libguestfs/2018-October/msg00051.html v3: - Back to using string/string_format and attribute/attribute_format. - Add both single_element and single_element_format. - Rebased and retested. Rich.
2018 Oct 04
2
[PATCH 0/2] Use common macros to help with libxml2 writer.
Consolidate and extend the use of funky start_element() etc macros. Rich.
2018 Oct 04
6
[PATCH v2 0/4] common/utils: Move libxml2 writer macros to a common header file.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-October/msg00047.html However it was broken in a few ways. First of all the documentation was broken because "/**" enhanced comments were not permitted on macros. This is fixed in the new 1/4 patch. Secondly we didn't use single_element() everywhere possible, which is fixed in the new 4/4 patch. Lastly I've
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...if (!str) exit (EXIT_FAILURE); if (STRNEQ (str, "unknown")) XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "product_name", BAD_CAST str)); + xmlTextWriterWriteElement (xo, BAD_CAST "product_name", BAD_CAST str)); free (str); str = guestfs_inspect_get_product_variant (g, root); if (!str) exit (EXIT_FAILURE); if (STRNEQ (str, "unknown")) XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "product_variant", BAD_CAST str)); + xmlTextWriterWriteElement (xo, BAD_CAST "product_variant", BAD_CAST str)); free...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67
2011 Mar 25
0
builder-debian libguestfs success a0e3b2183733c7440ad017c4ffe361935672339b
...stfs_inspect_get_format" has no tests warning: "guestfs_inspect_is_live" has no tests warning: "guestfs_inspect_is_netinst" has no tests warning: "guestfs_inspect_is_multipart" has no tests warning: "guestfs_set_attach_method" has no tests warning: "guestfs_inspect_get_product_variant" has no tests warning: "guestfs_ll" has no tests warning: "guestfs_pvs_full" has no tests warning: "guestfs_vgs_full" has no tests warning: "guestfs_lvs_full" has no tests warning: "guestfs_aug_init" has no tests warning: "guestfs_aug_clos...
2011 Mar 29
0
builder-debian libguestfs success 58f7a5a4ac8cce77dfaded1c29f3ad382b4cc9a8
...stfs_inspect_get_format" has no tests warning: "guestfs_inspect_is_live" has no tests warning: "guestfs_inspect_is_netinst" has no tests warning: "guestfs_inspect_is_multipart" has no tests warning: "guestfs_set_attach_method" has no tests warning: "guestfs_inspect_get_product_variant" has no tests warning: "guestfs_ll" has no tests warning: "guestfs_pvs_full" has no tests warning: "guestfs_vgs_full" has no tests warning: "guestfs_lvs_full" has no tests warning: "guestfs_aug_init" has no tests warning: "guestfs_aug_clos...
2011 Apr 02
0
builder-debian libguestfs success 8bb22a2902fc723eb809086dd93f5b8ed2ec85b1
...stfs_inspect_get_format" has no tests warning: "guestfs_inspect_is_live" has no tests warning: "guestfs_inspect_is_netinst" has no tests warning: "guestfs_inspect_is_multipart" has no tests warning: "guestfs_set_attach_method" has no tests warning: "guestfs_inspect_get_product_variant" has no tests warning: "guestfs_ll" has no tests warning: "guestfs_pvs_full" has no tests warning: "guestfs_vgs_full" has no tests warning: "guestfs_lvs_full" has no tests warning: "guestfs_aug_init" has no tests warning: "guestfs_aug_clos...
2011 Jun 10
0
builder-ubuntu libguestfs success 1f59849a4a45a1c78488eb41b250de631b4405a6
...stfs_inspect_get_format" has no tests warning: "guestfs_inspect_is_live" has no tests warning: "guestfs_inspect_is_netinst" has no tests warning: "guestfs_inspect_is_multipart" has no tests warning: "guestfs_set_attach_method" has no tests warning: "guestfs_inspect_get_product_variant" has no tests warning: "guestfs_inspect_get_windows_current_control_set" has no tests warning: "guestfs_inspect_get_drive_mappings" has no tests warning: "guestfs_ll" has no tests warning: "guestfs_pvs_full" has no tests warning: "guestfs_vgs_full&q...
2011 Jun 07
0
builder-ubuntu libguestfs success 2f73ea343cc4a3433f20e99a7835152767a70f80
...stfs_inspect_get_format" has no tests warning: "guestfs_inspect_is_live" has no tests warning: "guestfs_inspect_is_netinst" has no tests warning: "guestfs_inspect_is_multipart" has no tests warning: "guestfs_set_attach_method" has no tests warning: "guestfs_inspect_get_product_variant" has no tests warning: "guestfs_inspect_get_windows_current_control_set" has no tests warning: "guestfs_inspect_get_drive_mappings" has no tests warning: "guestfs_ll" has no tests warning: "guestfs_pvs_full" has no tests warning: "guestfs_vgs_full&q...
2011 Jun 21
0
builder-ubuntu libguestfs success e1e78bcef5e4654bd2456bd696840329359d35cd
...stfs_inspect_get_format" has no tests warning: "guestfs_inspect_is_live" has no tests warning: "guestfs_inspect_is_netinst" has no tests warning: "guestfs_inspect_is_multipart" has no tests warning: "guestfs_set_attach_method" has no tests warning: "guestfs_inspect_get_product_variant" has no tests warning: "guestfs_inspect_get_windows_current_control_set" has no tests warning: "guestfs_inspect_get_drive_mappings" has no tests warning: "guestfs_ll" has no tests warning: "guestfs_pvs_full" has no tests warning: "guestfs_vgs_full&q...