Displaying 20 results from an estimated 62 matches for "guestfs_inspect_get_minor_version".
2010 Jul 27
0
Inspection code in C
...oot);
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_format (guestfs_h *g, const char *root);
char *
guestfs_inspect_get_package_management (guestfs_h *g, const char *root);
char ** /* hash of mount point -> device */
guestfs_inspect_get_mountpoints (guestfs_h *g, const cha...
2018 Oct 04
0
[PATCH v2 3/4] inspector: Use libxml writer macros.
...eElement (xo, BAD_CAST "product_variant", BAD_CAST str));
- free (str);
-
- i = guestfs_inspect_get_major_version (g, root);
- snprintf (buf, sizeof buf, "%d", i);
- XMLERROR (-1,
- xmlTextWriterWriteElement (xo, BAD_CAST "major_version", BAD_CAST buf));
- i = guestfs_inspect_get_minor_version (g, root);
- snprintf (buf, sizeof buf, "%d", i);
- XMLERROR (-1,
- xmlTextWriterWriteElement (xo, BAD_CAST "minor_version", BAD_CAST buf));
-
- str = guestfs_inspect_get_package_format (g, root);
- if (!str) exit (EXIT_FAILURE);
- if (STRNEQ (str, "unknown"))...
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 Feb 21
3
[PATCH] New API: inspect_get_osinfo
...pe = 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_asprintf (g, "%s%d.0", distro, major);
+ else if (major == 6)
+ return safe_asprintf (g, "%s%d.%d", distro, major, min...
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.
...i = guestfs_inspect_get_major_version (g, root);
snprintf (buf, sizeof buf, "%d", i);
XMLERROR (-1,
- xmlTextWriterWriteElement (xo, BAD_CAST "major_version", BAD_CAST buf));
+ xmlTextWriterWriteElement (xo, BAD_CAST "major_version", BAD_CAST buf));
i = guestfs_inspect_get_minor_version (g, root);
snprintf (buf, sizeof buf, "%d", i);
XMLERROR (-1,
- xmlTextWriterWriteElement (xo, BAD_CAST "minor_version", BAD_CAST buf));
+ xmlTextWriterWriteElement (xo, BAD_CAST "minor_version", BAD_CAST buf));
str = guestfs_inspect_get_package_forma...
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_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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2010 Dec 24
0
builder-debian libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2011 Jan 07
0
builder-debian libguestfs success 7e1114445e713c4a15f3f2cede5842044de1735a
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2010 Dec 24
1
builder-ubuntu libguestfs success 3f4dc56a32074a02b1b829bd7a91878f73022d1d
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2010 Dec 07
0
builder-debian libguestfs success 4b8f70d46dcfed1489c97f822e263b8615f21ea0
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2010 Dec 08
0
builder-ubuntu libguestfs success 4e8ad174cadf9e75401b7fa0d380d4c84c29c9ec
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2011 Jan 04
0
builder-debian libguestfs success 7ce627fce02eae8c7db36b4090fa0ce1bf69bf44
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2011 Jan 25
0
builder-debian libguestfs success 36fe0acf8a2e72c223d7a9f7a93815ff276a3cc1
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2011 Jan 07
0
builder-ubuntu libguestfs success 7e1114445e713c4a15f3f2cede5842044de1735a
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2010 Dec 10
0
builder-debian libguestfs success 363978fa7fc055da380d31103c7de378a08b71fb
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...
2011 Jan 04
0
builder-ubuntu libguestfs success 7ce627fce02eae8c7db36b4090fa0ce1bf69bf44
...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: "guestfs_inspect_get_filesystems" has no tests
warning: "guestfs_set_network" has no tests
warning: "guestfs_get_...