search for: guestfs_default_path

Displaying 8 results from an estimated 8 matches for "guestfs_default_path".

Did you mean: dguestfs_default_path
2017 May 04
0
Re: [PATCH v1 2/2] build: add ./configure --with-guestfs-path option
...ertions(+), 1 deletion(-) > > diff --git a/lib/Makefile.am b/lib/Makefile.am > index 063706f8f..18b6dd678 100644 > --- a/lib/Makefile.am > +++ b/lib/Makefile.am > @@ -130,7 +130,6 @@ libguestfs_la_SOURCES = \ > libguestfs.syms > > libguestfs_la_CPPFLAGS = \ > - -DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"' \ > -DGUESTFS_WARN_DEPRECATED=1 \ > -DGUESTFS_PRIVATE=1 \ > -DLIBOSINFO_DB_PATH='"$(datadir)/libosinfo/db"' \ > diff --git a/m4/guestfs_appliance.m4 b/m4/guestfs_appliance.m4 > index 890b1999c..81c43879f 100644 > ---...
2017 Jun 25
0
Re: [PATCH 2/2] build: add ./configure --enable-appliance-fmt-auto option
...m4/guestfs_appliance.m4 | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/m4/guestfs_appliance.m4 b/m4/guestfs_appliance.m4 > index 81c43879f..7e8d28271 100644 > --- a/m4/guestfs_appliance.m4 > +++ b/m4/guestfs_appliance.m4 > @@ -139,3 +139,14 @@ AC_SUBST([GUESTFS_DEFAULT_PATH]) > > AC_DEFINE_UNQUOTED([GUESTFS_DEFAULT_PATH], ["$GUESTFS_DEFAULT_PATH"], > [Define guestfs default path.]) > + > +AC_ARG_ENABLE([appliance-fmt-auto], > + [AS_HELP_STRING([--enable-appliance-fmt-auto], > + [enable autodetection of appliance image f...
2020 Feb 06
1
Re: [PATCH v2] launch: add support for autodetection of appliance image format
...; +#endif > if (!params.appliance_overlay) > goto cleanup; > } > diff --git a/m4/guestfs_appliance.m4 b/m4/guestfs_appliance.m4 > index 81c43879f..4e1ec8135 100644 > --- a/m4/guestfs_appliance.m4 > +++ b/m4/guestfs_appliance.m4 > @@ -139,3 +139,14 @@ AC_SUBST([GUESTFS_DEFAULT_PATH]) > > AC_DEFINE_UNQUOTED([GUESTFS_DEFAULT_PATH], ["$GUESTFS_DEFAULT_PATH"], > [Define guestfs default path.]) > + > +AC_ARG_ENABLE([appliance-fmt-auto], > + [AS_HELP_STRING([--enable-appliance-fmt-auto], > + [enable autodetection of appliance image f...
2017 Apr 25
0
Re: [PATCH] appliance: reorder the steps to search for appliance
...n it would look for the fixed appliance in /path/to/somewhere/else and use it. If the fixed appliance exists there, then it would never check /usr/lib64/guestfs. (3) You could also compile a different path into libguestfs. Unfortunately there's no way to specify it at configure time, but see GUESTFS_DEFAULT_PATH in the sources. (4) Delete /usr/lib64/guestfs/supermin.d Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software insid...
2009 Sep 09
2
[PATCH] Add command trace functionality
...g->verbose = str != NULL && strcmp (str, "1") == 0; + str = getenv ("LIBGUESTFS_TRACE"); + g->trace = str != NULL && strcmp (str, "1") == 0; + str = getenv ("LIBGUESTFS_PATH"); g->path = str != NULL ? strdup (str) : strdup (GUESTFS_DEFAULT_PATH); if (!g->path) goto error; @@ -734,6 +738,19 @@ guestfs__version (guestfs_h *g) return r; } +int +guestfs__set_trace (guestfs_h *g, int t) +{ + g->trace = !!t; + return 0; +} + +int +guestfs__get_trace (guestfs_h *g) +{ + return g->trace; +} + /* Add a string to the current c...
2014 Jan 01
0
[PATCH] Allow ./configure --without-qemu.
...ose mode. This generates lots dnl of debug info, only useful for people debugging the RPC mechanism. diff --git a/src/handle.c b/src/handle.c index fa96d95..af7d956 100644 --- a/src/handle.c +++ b/src/handle.c @@ -107,7 +107,15 @@ guestfs_create_flags (unsigned flags, ...) g->path = strdup (GUESTFS_DEFAULT_PATH); if (!g->path) goto error; +#ifdef QEMU g->hv = strdup (QEMU); +#else + /* configure --without-qemu, so set QEMU to something which will + * definitely fail. The user is expected to override the hypervisor + * by setting an environment variable or calling set_hv. + */ + g-&g...
2010 Jul 05
5
[PATCH 0/3] RFC: Allow use of external QEMU process with libguestfs
This attempts to implement the idea proposed in https://www.redhat.com/archives/libguestfs/2010-April/msg00087.html The idea is that an externally managed QEMU (manual, or via libvirt) can boot the appliance kernel/initrd. libguestfs can then be just told of the UNIX domain socket associated with the guest daemon. An example based on guestfish. 1. Step one, find the appliance kernel/initrd
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
...quot;); str = getenv ("LIBGUESTFS_TRACE"); - g->trace = str != NULL && strcmp (str, "1") == 0; + g->trace = str != NULL && STREQ (str, "1"); str = getenv ("LIBGUESTFS_PATH"); g->path = str != NULL ? strdup (str) : strdup (GUESTFS_DEFAULT_PATH); @@ -722,13 +722,13 @@ guestfs__config (guestfs_h *g, /* A bit fascist, but the user will probably break the extra * parameters that we add if they try to set any of these. */ - if (strcmp (qemu_param, "-kernel") == 0 || - strcmp (qemu_param, "-initrd") == 0 ||...