Displaying 20 results from an estimated 39 matches for "guestfs_set_trac".
Did you mean:
guestfs_set_trace
2015 Oct 07
2
[PATCH 0/2] New APIs: set-identifier, get-identifier
This is very useful for debugging multithreaded programs.
Rich.
2016 Aug 29
0
Re: guestfs_launch gets stuck
...() from /lib64/libguestfs.so.0
> #4 0x00007fe3aa1fab2b in guestfs_impl_launch () from /lib64/libguestfs.so.0
> #5 0x00007fe3aa196b4d in guestfs_launch () from /lib64/libguestfs.so.0
> #6 0x00000000004116f8 in main ()
Before you call guestfs_launch(), call:
guestfs_set_verbose (1);
guestfs_set_trace (1);
That should print (on stderr) a lot more information about what is
going on. (http://libguestfs.org/guestfs-faq.1.html#how-do-i-debug-when-using-the-api)
If printing on stderr is not convenient from your program, then you
can also set up logging. See the example here:
https://github.com/l...
2010 Nov 08
1
[PATCH] fish: Add --rw option (does nothing yet).
...\
+ fprintf (stderr, _("%s: cannot mix --ro and --rw options\n"), \
+ program_name); \
+ exit (EXIT_FAILURE); \
+ }
+
#define OPTION_x \
guestfs_set_trace (g, 1)
diff --git a/fuse/guestmount.c b/fuse/guestmount.c
index 55b71d7..1b3abf9 100644
--- a/fuse/guestmount.c
+++ b/fuse/guestmount.c
@@ -884,7 +884,7 @@ main (int argc, char *argv[])
/* The command line arguments are broadly compatible with (a subset
* of) guestfish. Thus we have to d...
2014 Dec 17
3
[PATCH 0/3] Allow environment variables to have boolean values.
https://bugzilla.redhat.com/show_bug.cgi?id=1175196
Currently if you write something like LIBGUESTFS_DEBUG=0 or
LIBGUESTFS_DEBUG=true then it doesn't do what you probably expect.
This patch series fixes that.
Rich.
2015 May 06
0
Re: libguestfs init problem
...{
> guestfs_h *g;
> size_t i;
>
> g = guestfs_create ();
> if (g == NULL) {
> perror ("failed to create libguestfs handle");
> exit (EXIT_FAILURE);
> }
>
> /* Set the trace flag so that we can see each libguestfs call. */
> guestfs_set_trace (g, 1);
>
> /* Create a raw-format sparse disk image, 512 MB in size. */
> if (guestfs_disk_create (g, "disk.img", "raw", UINT64_C(512)*1024*1024,
> -1) == -1)
> exit (EXIT_FAILURE);
>
> /* Add the disk image to l...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.
2012 Dec 14
3
inspect_os error with Win7 image
The error message:
hivex_close: do_hivex_close: you must call 'hivex-open' first to
initialize the hivex handle
This is the process flow:
g = guestfs_create ();
guestfs_add_drive_opts (g, diskFile,GUESTFS_ADD_DRIVE_OPTS_FORMAT,
"raw",-1);
guestfs_launch (g)
char **roots = guestfs_inspect_os (g);
guestfs_inspect_os returns NULL, guestfs_last_error(g) returns
2014 Jan 28
0
[PATCH 05/10] examples: Update various examples to use new disk-create API.
...if (ftruncate (fd, 512 * 1024 * 1024) == -1) {
- perror ("disk.img: truncate");
- exit (EXIT_FAILURE);
- }
- if (close (fd) == -1) {
- perror ("disk.img: close");
- exit (EXIT_FAILURE);
}
/* Set the trace flag so that we can see each libguestfs call. */
guestfs_set_trace (g, 1);
+ /* Create a raw-format sparse disk image, 512 MB in size. */
+ if (guestfs_disk_create (g, "disk.img", "raw", UINT64_C(512)*1024*1024,
+ -1) == -1)
+ exit (EXIT_FAILURE);
+
/* Add the disk image to libguestfs. */
if (guestfs_add_...
2013 Apr 09
2
[Qemu-devel] debugging qemu-nbd.c
On Tue, Apr 09, 2013 at 10:18:50AM -0400, Skippy VonDrake wrote:
> Hello,
>
> Apologies upfront if posting to this list is inappropriate.
>
> I have an app that forks a process with calls qemu-nbd with an offset
> into an image.
> The app then uses libguestfs to attach the nbd device.
> But it appears that qemu is failing.
When you say "qemu is failing", do you
2009 Sep 09
2
[PATCH] Add command trace functionality
...--git a/guestfs.pod b/guestfs.pod
index d8e4da3..b8379d0 100644
--- a/guestfs.pod
+++ b/guestfs.pod
@@ -983,6 +983,11 @@ used.
See also L</QEMU WRAPPERS> above.
+=item LIBGUESTFS_TRACE
+
+Set C<LIBGUESTFS_TRACE=1> to enable command traces. This
+has the same effect as calling C<guestfs_set_trace (handle, 1)>.
+
=item TMPDIR
Location of temporary directory, defaults to C</tmp>.
diff --git a/src/generator.ml b/src/generator.ml
index 765cb16..6184890 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -805,6 +805,32 @@ is passed to the appliance at boot time. See C<guest...
2017 Mar 06
7
[PATCH 0/6] Various Coverity fixes #2
Hi,
this patch series fixes few more issues discovered by Coverity.
Thanks,
Pino Toscano (6):
tail: check the return value pf guestfs_set_pgroup
daemon: btrfs: check end_stringsbuf return values everywhere
java: use cleanup handlers for structs (lists) as return values
lib: qemu: improve handling of FILE*
p2v: check more return values
p2v: fix possible close(-1) issue
cat/tail.c
2015 May 05
3
libguestfs init problem
Hi ,all :
thanks for helping me ! I am using libguestfs-1.28.1 on ubuntu
12.04 to manage vm disk created by KVM. I downloaded
libguestfs-1.28.1.tar.gz ,and then executed
(1) ./autogen.sh (2) ./configure (3) make (4) make check .there is
the error.
/usr/Libvmi/libguestfs-1.28.1/run --test guest-aux/make-fedora-img.pl
md_create: feature 'mdadm' is not available in this
2020 Feb 20
0
buffer overflow detected in collectd using libguestfs
...NULL;
/* Work around collectd bug with waitpid() after fork() */
signal (SIGCHLD, SIG_DFL);
g = guestfs_create();
if (g == NULL) {
ERROR(PLUGIN_NAME " plugin: failed to create libguestfs handle");
goto cont; //exit(EXIT_FAILURE);
}
guestfs_set_trace(g,1);
//guestfs_set_verbose(g,1);
if ( 0 != guestfs_set_backend (g, "direct") ) {
ERROR(PLUGIN_NAME " plugin: guestfs_set_backend failed");
}
cnt_drives = guestfs_add_domain (g, name,
GUESTFS_ADD_DOMAIN_READONLY, 1, -1);
if (cnt_drives ==...
2018 Nov 02
2
guestfs_launch() fails when C application is started as a systemd service
Hello,
I have a simple C program that uses libguestfs to extract info about disk
usage from a libvirt domain. It works when ran manually as root, but fails
when started as a systemd service.
I'm attaching the service file, source code and verbose logs from both the
successful manual run and from the service journal.
SELinix is disabled.
Error messages:
libguestfs:
2016 Aug 29
2
Re: guestfs_launch gets stuck
...0x00007fe3aa1fab2b in guestfs_impl_launch () from
> /lib64/libguestfs.so.0
> > #5 0x00007fe3aa196b4d in guestfs_launch () from /lib64/libguestfs.so.0
> > #6 0x00000000004116f8 in main ()
>
> Before you call guestfs_launch(), call:
>
> guestfs_set_verbose (1);
> guestfs_set_trace (1);
>
> That should print (on stderr) a lot more information about what is
> going on. (http://libguestfs.org/guestfs-faq.1.html#how-do-i-
> debug-when-using-the-api)
>
> If printing on stderr is not convenient from your program, then you
> can also set up logging. See the e...
2011 Mar 10
1
[PATCH for discussion only] New event API (RHBZ#664558).
...override the printing of verbose messages to stderr by setting up a
callback.
GUESTFS_EVENT_TRACE (payload type: message buffer)
The callback function is called whenever a trace message is
generated. This only applies if the trace flag
("guestfs_set_trace") is set.
If no callback is registered: the messages are discarded unless the
verbose flag is set in which case they are sent to stderr. You can
override the printing of verbose messages to stderr by setting up a
callback.
guestfs_set_even...
2014 Jun 27
3
[PATCH WIP] Can't generate argv variant
Hi everyone,
lately I've been getting familiar with library and working on slight
re-layering of the library. It's about having locking layer in public API and
tracing one layer below that (let's call it __t_ layer. I'm not very good at
making up names, so this is temporary:) ). Then making sure that all generated
public stuff call __t_ layer and all other internal stuff
2018 Nov 07
2
Re: guestfs_launch() fails when C application is started as a systemd service
...try?
Here is the complete output from collectd:
[2018-11-07 12:21:54] plugin_load: plugin "logfile" successfully loaded.
[2018-11-07 12:21:54] plugin_load: plugin "syslog" successfully loaded.
Before guestfs_create()
UID: 0
Effective UID: 0
Before guestfs_set_verbose()
Before guestfs_set_trace()
Before guestfs_add_domain()
libguestfs: trace: add_domain "wer" "readonly:true"
libguestfs: opening libvirt handle: URI = NULL, auth = default+wrapper,
flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x7f7e70005210
libguestfs: trace: add_libvirt_dom (virDomai...
2012 Jul 03
8
[PATCH 0/7 v2] Fix and workaround for qcow2 issues in qemu causing data corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=836710
https://bugzilla.redhat.com/show_bug.cgi?id=836913
There are at least two related bugs going on:
(1) Linux sync(2) system call doesn't send a write barrier to the
disk, so in effect it doesn't force the hard disk to flush its cache.
libguestfs used sync(2) to force changes to disk. We didn't expect
that qemu was caching anything
2012 Jan 17
2
[PATCH v2] New tool: virt-format
This is the same as the previous patch, but the partition type is now
chosen automatically from mbr or gpt, unless the user expresses a
preference.
https://gb.redhat.com/archives/libguestfs/2012-January/msg00136.html
Rich.