search for: pelem

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

Did you mean: elem
2017 May 04
0
Re: [PATCH v1 1/2] appliance: search all types of appliances for each path separately
...you might as well simplify it by using safe_asprintf, ie: appliance->kernel = safe_asprintf (g, "%s/kernel", path); There are some further cases of the same thing below. > +static int > +search_appliance (guestfs_h *g, appliance_files *appliance) > +{ > + const char *pelem = g->path; > + > + /* Note that if g->path is an empty string, we want to check the > + * current directory (for backwards compatibility with > + * libguestfs < 1.5.4). > + */ > + do { > + size_t len = strcspn (pelem, PATH_SEPARATOR); > + /* Empty elem...
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
2016 Jul 22
1
[PATCH] static const char *str -> static const char str
...rnel_name[] = "vmlinuz." host_cpu; +static const char initrd_name[] = "initramfs." host_cpu ".img"; static int build_appliance (guestfs_h *g, char **kernel, char **initrd, char **appliance); static int find_path (guestfs_h *g, int (*pred) (guestfs_h *g, const char *pelem, void *data), void *data, char **pelem); diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c index ad1601c..a5297ba 100644 --- a/test-tool/test-tool.c +++ b/test-tool/test-tool.c @@ -78,7 +78,7 @@ main (int argc, char *argv[]) bindtextdomain (PACKAGE, LOCALEBASEDIR); textdomain (PACKAG...
2013 Sep 06
1
[PATCH] arm: appliance: Add support for device trees (dtb's).
This is the libguestfs companion patch to: https://www.redhat.com/archives/libguestfs/2013-September/msg00045.html Rich.
2014 Feb 13
3
Libguestfs (1.22.6) driver/changes for mingw/win32
Hi, I attached the changes I made to a vanilla libguestfs-1.22.6 in order to make it work in mingw/win32. Added is also the patch required to make QEMU compatible (add a command to QMP that lists the supported devices (the regilat way you do it print it to stderr, which is difficult to redirect in win32)). This is done on behalf of Intel Corp. Thanks, Or (oberon in irc)
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...*qemu_value) { if (qemu_param[0] != '-') { error (g, _("guestfs_config: parameter must begin with '-' character")); @@ -932,27 +932,27 @@ guestfs_launch (guestfs_h *g) /* Empty element of "." means cwd. */ if (len == 0 || (len == 1 && *pelem == '.')) { if (g->verbose) - fprintf (stderr, - "looking for supermin appliance in current directory\n"); + fprintf (stderr, + "looking for supermin appliance in current directory\n"); if (dir_contains_files (".", -...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...ance.c +++ b/src/appliance.c @@ -39,8 +39,8 @@ static const char *initrd_name = "initramfs." host_cpu ".img"; static int build_appliance (guestfs_h *g, char **kernel, char **initrd, char **appliance); static int find_path (guestfs_h *g, int (*pred) (guestfs_h *g, const char *pelem, void *data), void *data, char **pelem); -static int dir_contains_file (const char *dir, const char *file); -static int dir_contains_files (const char *dir, ...); +static int dir_contains_file (guestfs_h *g, const char *dir, const char *file); +static int dir_contains_files (guestfs_h *g, const cha...