Displaying 20 results from an estimated 2000 matches similar to: "question about libguestfs"
2020 Oct 20
1
Re: question about libguestfs
Hi, Mr. Rich.
I am sorry that I left too little information in the last email because I
edited with my mobile phone.
I wrote about my first question in the following link.
https://rwmj.wordpress.com/2010/11/15/libguestfs-inspection-now-lists-windows-apps/
2nd. Question
After I call the mount_local() function in guestfs.py to operate on a disk,
I hope to umount it. After calling the
2020 Oct 20
0
Re: question about libguestfs
On Tue, Oct 20, 2020 at 12:52:52AM +0800, ssacpklnm wrote:
> 1. When I call inspect_os on a vmdk file containing windows system,
> guestfish throws a Hivex.Error, I have installed hivex.
There's not really enough information here to help. What you
should do is enable debugging:
https://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
That will produce a lot of output which can
2018 May 02
1
[RFC] fuse: mount_local: Fix crash when called from Java binding
"localmountpoint" parameter is allocated in JNI before calling
mount_local and freed afterward. But guestfs handle keeps reference
to passed "localmountpoint" argument and will try to use and free it
in umount_local which leads to a crash because an attempt to access
already freed memory region.
It is not easy to fix on JNI side because the code is auto-generated.
And I
2012 Apr 26
1
[PATCH] gobject: Move headers into a subdirectory
The gobject bindings generate a large number of header files, which pollute
/usr/include when installed. This patch moves them all into a guestfs-gobject/
subdirectory. guestfs-gobject.h remains in the same place.
This change also moves generated source files into src/, because it makes the
gobject directory a bit tidier.
---
generator/Makefile.am | 3 +
2012 Jul 23
3
[PATCH V2 1/4] mount: add a macro to resolve path or device
Add a macro STRDUP_RESOLVE_DEVICE_OR_PATH to resolve path or device.
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
daemon/daemon.h | 16 ++++++++++++++++
daemon/mount.c | 13 ++-----------
2 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 85eec45..f7d0c75 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -336,6
2012 Jul 21
5
[PATCH 1/5] mount: add a macro to resolve path or device
Add a macro DUP_RESOLVE_DEVICE_OR_PATH to resolve path or device.
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
daemon/daemon.h | 18 ++++++++++++++++++
daemon/mount.c | 13 ++-----------
po/POTFILES | 8 ++++++++
3 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 85eec45..39cc3f3 100644
--- a/daemon/daemon.h
+++
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
2011 Dec 14
3
Proposed changes for OpenStack
[These two patches are for discussion only]
Allow FUSE support to be used directly through the API.
This is the second commit.
In order to make this usable from guestfish, we have to
also bind the events API in guestfish. This is the first
commit.
Rich.
2013 Jun 14
3
[PATCH 0/2] Fix inspection of Fedora guests (RHBZ#974489).
Here is a preliminary fix for this bug.
I'm running the test suite on this now.
Rich.
2012 Mar 29
3
[PATCH v3] New APIs: mount-local, mount-local-run and umount-local using FUSE
This changes the proposed API slightly.
Previously 'mount-local' generating a 'mounted' event when the
filesystem was ready, and from the 'mounted' event you had to
effectively do a fork.
Now, 'mount-local' just initializes the mountpoint and you have to
call 'mount-local-run' to enter the FUSE main loop. Between these
calls you can do a fork or whatever
2012 Apr 29
6
How to test my patch before I post it to public?
Hi , All
I 'm a green hand and interested in open source development. I have a general question “How to test my patch before I post it to public?” Hope you guys give me some suggestions. : )
Firstly, I can re-compile the code, to assure no syntax error. However,I don't know how to test my patch's function is right or not. Some software requires unit test for each function. Is there
2011 Apr 21
1
[PATCH] v2v: Filter out the transfer iso if it's returned by inspect_os()
inspect_os() shouldn't do this, but ultimately it's heuristic. As we know what
the transfer device is, we can double-check the output.
---
v2v/virt-v2v.pl | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/v2v/virt-v2v.pl b/v2v/virt-v2v.pl
index fe07ae9..6e73102 100755
--- a/v2v/virt-v2v.pl
+++ b/v2v/virt-v2v.pl
@@ -496,11 +496,18 @@ my $g = new
2013 Sep 04
2
python-guestfs
I use python-guestfs to mount windows image it have some problems .Here is my code:
[root@mfsdata1 ~]# python
Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> sheepfs_dir="/tmp/sheepfs"
2015 May 27
3
Concurrent scanning of same disk
Greetings,
I am suffering of several weird errors which show randomly and make me
suspect some concurrency issue.
Libguestfs version is 1.28.1, linux kernel 3.16, libvirt 1.2.9 and qemu 2.1.
What I'm trying to do is comparing the disk state at two different point of
a guest execution.
Disk snapshots are taken through libvirt in different moments (I am aware
of caching issue), from such
2010 Feb 05
13
[PATCH 01/14] hivexsh: Document some peculiarities of the "cd" command.
---
hivex/hivexsh.pod | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/hivex/hivexsh.pod b/hivex/hivexsh.pod
index 277e3ae..9336798 100644
--- a/hivex/hivexsh.pod
+++ b/hivex/hivexsh.pod
@@ -100,7 +100,14 @@ or even:
Path elements (node names) are matched case insensitively, and
characters like space, C<*>, and C<?> have I<no> special
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi,
this series cleans up the Python sources, either static or generated,
including also tests, to make them PEP 8 compliant; see
https://www.python.org/dev/peps/pep-0008/ and tools like pep8.
Almost all the issues reported by pep8 are fixed, reducing the issues
from 3818 to 7.
The changes should have no effect on the actual code, while it will
help Python users with consistency with other
2011 Mar 31
2
Python Hivex Assertion Failed
Good afternoon,
I am working with the hivex python bindings and having trouble with an
assertion failure.
The code I run is based on the blog post from 11/28/10 and is:
import hivex
h = hivex.Hivex("ntuser.dat")
r = h.root()
key = h.node_get_child(r)
The assert failure happens when I call any of the "node" functions,
even "node_name()".
The error message I get
2009 Nov 09
1
[PATCH libguestfs] placate 'make syntax-check'
Similar:
hivex/hivex.c
maint.mk: the above files include <assert.h> but don't use it
make: *** [sc_prohibit_assert_without_use] Error 1
>From a71e5791293ac1e794fecffee8a2d616777f77e0 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Mon, 9 Nov 2009 15:08:09 +0100
Subject: [PATCH libguestfs] placate 'make syntax-check'
*
2011 Jun 28
1
[PATCH 0/14] hivex: update gnulib and make "syntax-check" tests pass
Hi,
This series updates to the latest gnulib, after
making most of its "make syntax-check" tests pass.
There are still a few tests (listed in cfg.mk)
that are simply skipped. To enable one, just remove
its test name from the list of tests to skip and run
"make syntax-check".
[PATCH hivex 01/14] maint: add cfg.mk to prepare for syntax-check
[PATCH hivex 02/14] maint: remove
2014 May 13
2
new warnings in hivex-1.3.10
hivex-1.3.10 does not pass the sles11sp3 post-build-checks anymore,
1.3.8 was still ok. The relevant output is:
...
[ 57s] Hivex.xs: In function 'XS_Win__Hivex_node_name':
[ 57s] Hivex.xs:236: warning: implicit declaration of function 'newSVpvn_utf8'
[ 57s] Hivex.xs:236: warning: assignment makes pointer from integer without a cast
[ 57s] Hivex.xs: In function