search for: guestfs_inspect_get_distro

Displaying 20 results from an estimated 64 matches for "guestfs_inspect_get_distro".

2010 Jul 27
0
Inspection code in C
...functions return ancillary information such as the name of the * OS, version numbers, etc. If it could not be determined, these * return an error. */ char * guestfs_inspect_get_name (guestfs_h *g, const char *root); char * guestfs_inspect_get_arch (guestfs_h *g, const char *root); char * guestfs_inspect_get_distro (guestfs_h *g, const char *root); char * guestfs_inspect_get_product_name (guestfs_h *g, const char *root); int guestfs_inspect_get_major_version (guestfs_h *g, const char *root); int guestfs_inspect_get_minor_version (guestfs_h *g, const char *root); char * guestfs_inspect_get_package_form...
2018 Oct 04
0
[PATCH v2 3/4] inspector: Use libxml writer macros.
..."name", BAD_CAST str)); - free (str); - - str = guestfs_inspect_get_arch (g, root); - if (!str) exit (EXIT_FAILURE); - if (STRNEQ (str, "unknown")) - XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "arch", BAD_CAST str)); - free (str); - - str = guestfs_inspect_get_distro (g, root); - if (!str) exit (EXIT_FAILURE); - if (STRNEQ (str, "unknown")) - XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "distro", BAD_CAST str)); - free (str); - - str = guestfs_inspect_get_product_name (g, root); - if (!str) exit (EXIT_FAILURE); - if...
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.
2017 Mar 04
0
[PATCH] rescue: Implement escape sequences.
...printf (_(" product name: %s\r\n"), str); + free (str); + str = guestfs_inspect_get_type (g, root); + if (str) + printf (_(" type: %s\r\n"), str); + free (str); + str = guestfs_inspect_get_distro (g, root); + if (str) + printf (_(" distro: %s\r\n"), str); + free (str); + } + } + } + break; + + case 'q': case 'x': + return true /* exit virt-rescue at once */; +...
2018 Feb 21
3
[PATCH] New API: inspect_get_osinfo
...ot;guestfs-internal-actions.h" + +char * +guestfs_impl_inspect_get_osinfo (guestfs_h *g, const char *root) +{ + CLEANUP_FREE char *type = NULL; + CLEANUP_FREE char *distro = NULL; + int major, minor; + + type = guestfs_inspect_get_type (g, root); + if (!type) + return NULL; + distro = guestfs_inspect_get_distro (g, root); + if (!distro) + return NULL; + major = guestfs_inspect_get_major_version (g, root); + minor = guestfs_inspect_get_minor_version (g, root); + + if (STREQ (type, "linux")) { + if (STREQ (distro, "centos")) { + if (major >= 7) + return safe_aspr...
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
2017 Mar 04
7
[PATCH v3] Fix virt-rescue.
Version 3: - Tidies up the code further. - Implements correct handling of SIGTSTP and SIGCONT. - Adds: ^] s - sync filesystems - Adds: ^] z - suspend virt-rescue Rich.
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...arch (g, root); if (!str) exit (EXIT_FAILURE); if (STRNEQ (str, "unknown")) XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "arch", BAD_CAST str)); + xmlTextWriterWriteElement (xo, BAD_CAST "arch", BAD_CAST str)); free (str); str = guestfs_inspect_get_distro (g, root); if (!str) exit (EXIT_FAILURE); if (STRNEQ (str, "unknown")) XMLERROR (-1, - xmlTextWriterWriteElement (xo, BAD_CAST "distro", BAD_CAST str)); + xmlTextWriterWriteElement (xo, BAD_CAST "distro", BAD_CAST str)); free (str); str =...
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
2010 Dec 07
0
builder-debian libguestfs FAILED tests 4c5038ab54fb6fdff75ca8d5fdda9e73f48a5050
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2010 Dec 24
0
builder-debian libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2011 Jan 07
0
builder-debian libguestfs success 7e1114445e713c4a15f3f2cede5842044de1735a
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2010 Dec 24
1
builder-ubuntu libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2010 Dec 07
0
builder-debian libguestfs success 4b8f70d46dcfed1489c97f822e263b8615f21ea0
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2010 Dec 08
0
builder-ubuntu libguestfs success 4e8ad174cadf9e75401b7fa0d380d4c84c29c9ec
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2011 Jan 04
0
builder-debian libguestfs success 7ce627fce02eae8c7db36b4090fa0ce1bf69bf44
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2011 Jan 25
0
builder-debian libguestfs success 36fe0acf8a2e72c223d7a9f7a93815ff276a3cc1
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...
2011 Jan 07
0
builder-ubuntu libguestfs success 7e1114445e713c4a15f3f2cede5842044de1735a
..."guestfs_add_drive_with_if" has no tests warning: "guestfs_add_drive_ro_with_if" has no tests warning: "guestfs_inspect_os" has no tests warning: "guestfs_inspect_get_type" has no tests warning: "guestfs_inspect_get_arch" has no tests warning: "guestfs_inspect_get_distro" has no tests warning: "guestfs_inspect_get_major_version" has no tests warning: "guestfs_inspect_get_minor_version" has no tests warning: "guestfs_inspect_get_product_name" has no tests warning: "guestfs_inspect_get_mountpoints" has no tests warning: &q...