search for: value_i

Displaying 20 results from an estimated 20 matches for "value_i".

Did you mean: value_r
2015 Sep 09
2
[PATCH] inspect: try to use /etc/os-release on Linux guests
...ne, '='); + if (value == NULL) + continue; + + ++value; + value_len = strlen (line) - (value - line); + if (value_len > 1 && value[0] == '"' && value[value_len-1] == '"') { + ++value; + value_len -= 2; + } + +#define VALUE_IS(a) STREQLEN(value, a, value_len) + if (STRPREFIX (line, "ID=")) { + if (VALUE_IS ("alpine")) + distro = OS_DISTRO_ALPINE_LINUX; + else if (VALUE_IS ("altlinux")) + distro = OS_DISTRO_ALTLINUX; + else if (VALUE_IS ("arch")) +...
2016 Mar 30
2
[PATCH] inspect: use os-release for CoreOS
...) diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c index 35181d6..dab4370 100644 --- a/src/inspect-fs-unix.c +++ b/src/inspect-fs-unix.c @@ -196,6 +196,8 @@ parse_os_release (guestfs_h *g, struct inspect_fs *fs, const char *filename) distro = OS_DISTRO_ARCHLINUX; else if (VALUE_IS ("centos")) distro = OS_DISTRO_CENTOS; + else if (VALUE_IS ("coreos")) + distro = OS_DISTRO_COREOS; else if (VALUE_IS ("debian")) distro = OS_DISTRO_DEBIAN; else if (VALUE_IS ("fedora")) @@ -1055,6 +1057,16 @@ gues...
2016 Mar 30
0
Re: [PATCH] inspect: use os-release for CoreOS
...-unix.c b/src/inspect-fs-unix.c > index 35181d6..dab4370 100644 > --- a/src/inspect-fs-unix.c > +++ b/src/inspect-fs-unix.c > @@ -196,6 +196,8 @@ parse_os_release (guestfs_h *g, struct inspect_fs *fs, const char *filename) > distro = OS_DISTRO_ARCHLINUX; > else if (VALUE_IS ("centos")) > distro = OS_DISTRO_CENTOS; > + else if (VALUE_IS ("coreos")) > + distro = OS_DISTRO_COREOS; > else if (VALUE_IS ("debian")) > distro = OS_DISTRO_DEBIAN; > else if (VALUE_IS ("fedora"...
2008 May 30
1
Modify string-regular expression
...ed I have two arrays : -One for the name of my parameters -One for the new values for each parameter I would like to write a loop like this one : ... SCAN <- scan("File.txt",sep="\n", what="raw",blank.lines.skip=F) For (i in 1:Nb_param) { sub('Param[i] = Value_i-1','Param[i] = Value_i-2', SCAN) } ... I Know how to modify a string with sub when it is a fixed string : sub("(K =)([0-9]*)",paste("\\1", Value[i,2]),SCAN) But i would like to know if it is possible to use the function paste or something else in the first argument...
2016 Mar 31
1
Re: [PATCH] inspect: use os-release for CoreOS
...-unix.c >> index 35181d6..dab4370 100644 >> --- a/src/inspect-fs-unix.c >> +++ b/src/inspect-fs-unix.c >> @@ -196,6 +196,8 @@ parse_os_release (guestfs_h *g, struct inspect_fs *fs, const char *filename) >> distro = OS_DISTRO_ARCHLINUX; >> else if (VALUE_IS ("centos")) >> distro = OS_DISTRO_CENTOS; >> + else if (VALUE_IS ("coreos")) >> + distro = OS_DISTRO_COREOS; >> else if (VALUE_IS ("debian")) >> distro = OS_DISTRO_DEBIAN; >> else if (VALU...
2016 May 24
3
[PATCH 1/3] inspect: recognize the Void Linux distribution
...ormat { diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c index 0e64e33..4d41086 100644 --- a/src/inspect-fs-unix.c +++ b/src/inspect-fs-unix.c @@ -216,6 +216,8 @@ parse_os_release (guestfs_h *g, struct inspect_fs *fs, const char *filename) distro = OS_DISTRO_SLES; else if (VALUE_IS ("ubuntu")) distro = OS_DISTRO_UBUNTU; + else if (VALUE_IS ("void")) + distro = OS_DISTRO_VOID_LINUX; } else if (STRPREFIX (line, "PRETTY_NAME=")) { free (product_name); product_name = safe_strndup (g, value, value_len); @@ -229...
2011 Sep 20
1
Understanding API Documentation for PHP
Hey everyone, I am brand new to Xapian so forgive me if I am just being noob. I looked over the sparse documentation for the Xapian library and its PHP hooks and I am really confused how to complete my index. I understand how to add documents etc etc etc and how to build queries but how I do specify in add_value what field type xapian should take (i.e. tokenized, unindexed, indexed)? Is there
2015 Sep 09
2
Re: [PATCH] inspect: try to use /etc/os-release on Linux guests
On Wednesday 09 September 2015 15:54:10 Olaf Hering wrote: > Just poked around in my =libguestfs folder... > > On Wed, Sep 09, Pino Toscano wrote: > > > + if (STRPREFIX (line, "ID=")) { > > This is not handled: > > NAME="SLES" > VERSION="12" > VERSION_ID="12" > PRETTY_NAME="SUSE Linux Enterprise Server
2017 Oct 31
0
Wine release 2.20
...ion with no argument of already installed product. msi: Add install test with no arguments on already installed product. msi: Add more feature action tests. user32: Don't do the painting if combobox is not visible in CBPaintText. msi: Move condition integer handling into value_i. msi: Define special types for condition operators, identifiers and expressions. msi: Store condition intermediate values in union. msi: Add error handling when retriving component/feature state/action in condition. Sergio Gómez Del Real (1): uxtheme: Add a stub for IsCompo...
2017 Jul 21
10
[PATCH v10 00/10] Reimplement inspection in the daemon.
v9 was here: https://www.redhat.com/archives/libguestfs/2017-July/msg00139.html This depends on these three series (the first two being single minor patches): https://www.redhat.com/archives/libguestfs/2017-July/msg00207.html https://www.redhat.com/archives/libguestfs/2017-July/msg00209.html https://www.redhat.com/archives/libguestfs/2017-July/msg00215.html There is no substantive change. I
2017 Jul 17
12
[PATCH v9 00/11] Reimplement inspection in the daemon.
This depends on the patch series "[PATCH 00/27] Reimplement many daemon APIs in OCaml." (https://www.redhat.com/archives/libguestfs/2017-July/msg00098.html) v8 was posted here: https://www.redhat.com/archives/libguestfs/2017-June/msg00274.html v9: - I split up the mega-patch into a more reviewable series of smaller, incremental patches. There are some other changes vs v8, but
2011 Sep 21
2
Xapian-discuss Digest, Vol 88, Issue 9
Thanks that helped :). I am still trying to cover add_value some more though since I seem to not understand it totally. I guess it is because I am used to Lucene and Sphinx and Solr and it appears that Xapian seems to attach the type of value stored more on add_value. Like for example I am still a bit confused on how slotno actually works and what it actually is. I think the main thing is
2017 Aug 09
16
[PATCH v12 00/11] Reimplement inspection in the daemon.
This fixes almost everything. Note that it adds an extra commit which fixes the whole utf8/iconv business. It's probably better to list what isn't fixed: (1) I didn't leave the osinfo code around because I'm still haven't looked too closely at virt-builder-repository. Can't we just fetch this code from the git history when we need it? (2) I didn't change the way
2017 Jul 31
16
[PATCH v11 00/10] Reimplement inspection in the daemon.
v10: https://www.redhat.com/archives/libguestfs/2017-July/msg00245.html No actual change here, but I rebased and retested. Also this series now does not depend on any other patch series since everything else needed is upstream. Rich.
2016 May 18
0
[PATCH 2/2] inspect: switch to version struct for os major/minor version
...t a number. */ - if (major_version != -1) - minor_version = 0; - } + CLEANUP_FREE char *buf = + safe_asprintf (g, "%.*s", (int) value_len, value); + if (guestfs_int_version_from_x_y_or_x (g, &version, buf) == -1) + return -1; } #undef VALUE_IS } /* If we haven't got all the fields, exit right away. */ if (distro == OS_DISTRO_UNKNOWN || product_name == NULL || - major_version == -1 || minor_version == -1) + version.v_major == -1 || version.v_minor == -1) return 0; /* Apparently, os-release in Debian and...
2017 Jun 19
29
[PATCH v7 00/29] Reimplement inspection in the daemon.
v6 was posted here: https://www.redhat.com/archives/libguestfs/2017-June/msg00103.html and this requires the utilities refactoring posted here: https://www.redhat.com/archives/libguestfs/2017-June/msg00169.html Inspection is now complete[*], although not very well tested. I'm intending to compare the output of many guests using old & new virt-inspector to see if I can find any
2016 May 17
3
[PATCH 0/2] src: introduce an helper version struct
Hi, this adds an helper version struct, and uses it in the backends (for the libvirt and qemu versions) and inspection code. This also moves common code to that, so it is not repeated in many places. This should help with the small refactoring proposed with https://www.redhat.com/archives/libguestfs/2016-May/msg00070.html Thanks, Pino Toscano (2): src: start unifying version handling
2016 May 18
3
[PATCH v2 0/2] src: introduce an helper version struct
Hi, this adds an helper version struct, and uses it in the backends (for the libvirt and qemu versions) and inspection code. This also moves common code to that, so it is not repeated in many places. This should help with the small refactoring proposed with https://www.redhat.com/archives/libguestfs/2016-May/msg00070.html Thanks, Pino Toscano (2): src: start unifying version handling
2017 Jun 15
45
[PATCH v6 00/41] Refactor utilities, reimplement inspection in the daemon.
v5: https://www.redhat.com/archives/libguestfs/2017-June/msg00065.html Since v5, this now implements inspection almost completely for Linux and Windows guests. Rich.
2017 Jun 21
45
[PATCH v8 00/42] Refactor utilities and reimplement inspection.
v7 was: https://www.redhat.com/archives/libguestfs/2017-June/msg00169.html https://www.redhat.com/archives/libguestfs/2017-June/msg00184.html I believe this addresses all comments received so far. Also it now passes a test where I compared about 100 disk images processed with old and new virt-inspector binaries. The output is identical in all cases except one which is caused by a bug in blkid