search for: guestfish_pid

Displaying 11 results from an estimated 11 matches for "guestfish_pid".

2023 May 19
1
[libguestfs PATCH 3/3] LUKS-on-LVM inspection test: test /dev/mapper/VG-LV translation
...ption-inspect-luks-on-lvm.sh > +++ b/tests/luks/test-key-option-inspect-luks-on-lvm.sh > @@ -101,3 +101,21 @@ eval "$fish_ref" > > # Repeat the test. > check_filesystems > + > +# Exit the current guestfish background process. > +guestfish --remote -- exit > +GUESTFISH_PID= > + > +# Start up another guestfish background process, and specify the keys in > +# /dev/mapper/VG-LV format this time. > +keys_by_mapper_lvname=( > + --key /dev/mapper/Volume--Group-Root:key:FEDORA-Root > + --key /dev/mapper/Volume--Group-Logical--Volume--1:key:FEDORA-LV1 &gt...
2009 Aug 24
5
[0/5] guestfish: detect stdout-write failure
Nearly any program that writes to standard output can benefit from this sort of fix. Without it, running e.g., ./guestfish --version > /dev/full would exit successfully, even though it got ENOSPC when writing to the full device. That means regular output redirected to a file on a full partition may also fail to be written, and the error ignored. Before: $ guestfish --version >
2023 May 19
3
[libguestfs PATCH 0/3] test "/dev/mapper/VG-LV" with "--key"
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168506 This small set covers the new /dev/mapper/VG-LV "--key" ID format in the libguestfs LUKS-on-LVM inspection test. Thanks, Laszlo Laszlo Ersek (3): update common submodule LUKS-on-LVM inspection test: rename VGs and LVs LUKS-on-LVM inspection test: test /dev/mapper/VG-LV translation common
2010 Aug 28
4
[PATCH 0/4] Add progress bars
As discussed previously: https://www.redhat.com/archives/libguestfs/2010-July/msg00003.html https://www.redhat.com/archives/libguestfs/2010-July/msg00024.html To do: (1) Implement progress notifications for many more daemon operations. (2) OCaml bindings to the callback. (3) Perl bindings to the callback. Rich. -- Richard Jones, Virtualization Group, Red Hat
2009 Nov 20
1
fix new failures from latest-from-gnulib syntax-check
..., "%d", &remote_control) != 1) { fprintf (stderr, _("%s: --listen=PID: PID was not a number: %s\n"), program_name, optarg); - exit (1); + exit (EXIT_FAILURE); } } else { p = getenv ("GUESTFISH_PID"); @@ -230,7 +230,7 @@ main (int argc, char *argv[]) fprintf (stderr, _("%s: remote: $GUESTFISH_PID must be set" " to the PID of the remote process\n"), program_name); - exit (1); + exi...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
..., optarg); - exit (EXIT_FAILURE); - } + if (sscanf (optarg, "%d", &remote_control) != 1) + error (EXIT_FAILURE, 0, + _("--listen=PID: PID was not a number: %s"), optarg); } else { p = getenv ("GUESTFISH_PID"); - if (!p || sscanf (p, "%d", &remote_control) != 1) { - fprintf (stderr, _("%s: remote: $GUESTFISH_PID must be set" - " to the PID of the remote process\n"), - guestfs_int_program_name);...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did: if (something_bad) { perror (...); exit (EXIT_FAILURE); } replace this with use of the error(3) function: if (something_bad) error (EXIT_FAILURE, errno, ...); The error(3) function is supplied by glibc, or by gnulib on platforms which don't have it, and is much more flexible than perror(3). Since we already use error(3), there seems to be
2010 Aug 31
13
[PATCH v2] Add progress bars
This is an updated and extended version of the original patch: https://www.redhat.com/archives/libguestfs/2010-August/msg00163.html This adds OCaml and Perl bindings (both tested), support for progress bars in virt-resize, and adds progress notifications to a number of the simpler commands. Still to do is to add progress messages to more commands. There are still a few commands which would be
2016 Jul 18
2
[PATCH] tests: Implement script to check documented tool options match actual options.
...<-N> creates a preformatted disk with a filesystem and adds it. See L</PREPARED DISK IMAGES> below. @@ -383,7 +383,9 @@ interactive shell. Disable progress bars. -=item B<--remote[=pid]> +=item B<--remote> + +=item B<--remote=>PID Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below. diff --git a/fish/test-docs.sh b/fish/test-docs.sh new file mode 100755 index 0000000..07ba9f8 --- /dev/null +++ b/fish/test-docs.sh @@ -0,0 +1,26 @@ +#!/bin/bash - +# libguestfs +# Copyright (C) 2016 Red Hat...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...ong_options[option_index].name, "remote") == 0) { - if (optarg) { - if (sscanf (optarg, "%d", &remote_control) != 1) { - fprintf (stderr, _("guestfish: --listen=PID: PID was not a number: %s\n"), optarg); - exit (1); - } - } else { - p = getenv ("GUESTFISH_PID"); - if (!p || sscanf (p, "%d", &remote_control) != 1) { - fprintf (stderr, _("guestfish: remote: $GUESTFISH_PID must be set to the PID of the remote process\n")); - exit (1); - } - } + if (optarg) { + if (sscanf (optarg, "%d", &amp...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.