search for: f4e2c71

Displaying 2 results from an estimated 2 matches for "f4e2c71".

2016 May 26
1
[PATCH] osinfo: use guestfs_int_version_from_x_y to parse the os version
Make use of the common version code, and avoid a separate regexp. --- src/osinfo.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/osinfo.c b/src/osinfo.c index 4a4cbfc..f4e2c71 100644 --- a/src/osinfo.c +++ b/src/osinfo.c @@ -65,8 +65,6 @@ #include "guestfs.h" #include "guestfs-internal.h" -COMPILE_REGEXP (re_major_minor, "(\\d+)\\.(\\d+)", 0) - gl_lock_define_initialized (static, osinfo_db_lock); static ssize_t osinfo_db_size = 0; /* 0...
2016 Jul 25
2
[PATCH] osinfo: revamp db reading (RHBZ#1359652)
..., and then to the old flat layout. [1] https://gitlab.com/libosinfo/libosinfo/blob/master/docs/database-layout.txt --- src/osinfo.c | 168 +++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 140 insertions(+), 28 deletions(-) diff --git a/src/osinfo.c b/src/osinfo.c index f4e2c71..0caacfa 100644 --- a/src/osinfo.c +++ b/src/osinfo.c @@ -55,6 +55,7 @@ #include <assert.h> #include <sys/types.h> #include <libintl.h> +#include <sys/stat.h> #include <libxml/parser.h> #include <libxml/xpath.h> @@ -148,36 +149,109 @@ guestfs_int_osinfo_ma...