search for: hivex_close

Displaying 20 results from an estimated 48 matches for "hivex_close".

2014 Sep 23
1
Another possible bug in the preview version of virt-v2v for RHEL/CentOS 7.1
...reading length word libguestfs: got daemon cancellation guestfsd: receive_file: got chunk: cancel = 0x1, len = 0, buf = (nil) guestfsd: receive_file: received cancellation from library guestfsd: error: /Windows/Drivers/VirtIO: Is a directory libguestfs: trace: upload = -1 (error) libguestfs: trace: hivex_close guestfsd: main_loop: proc 66 (upload) took 0.03 seconds guestfsd: main_loop: new request, len 0x28 hivex: hivex_close: hivex_close guestfsd: main_loop: proc 351 (hivex_close) took 0.00 seconds libguestfs: trace: hivex_close = 0 virt-v2v: error: libguestfs error: upload: /Windows/Drivers/VirtIO: Is...
2010 Aug 13
2
[PATCH] Add debug output to hivex_close
--- lib/hivex.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/hivex.c b/lib/hivex.c index 13d7556..8a774de 100644 --- a/lib/hivex.c +++ b/lib/hivex.c @@ -543,6 +543,9 @@ hivex_close (hive_h *h) free (h->filename); free (h); + if (h->msglvl >= 1) + fprintf (stderr, "hivex_close\n"); + return r; } -- 1.7.2.1
2014 Sep 23
2
Virt-v2v conversion issue
...stor.sys" libguestfs: trace: case_sensitive_path = "/Windows/System32/drivers/viostor.sys" libguestfs: trace: cp "/usr/share/virtio-win/drivers/amd64/Win2008/viostor.sys" "/Windows/System32/drivers/viostor.sys" libguestfs: trace: cp = -1 (error) libguestfs: trace: hivex_close libguestfs: trace: hivex_close = 0 virt-v2v: error: libguestfs error: cp: cp: cannot stat '/sysroot/usr/share/virtio-win/drivers/amd64/Win2008/viostor.sys': No such file or directory If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...
2014 Sep 22
1
Possible bug in preview version of virt-v2v
[This email is either empty or too large to be displayed at this time]
2014 Sep 23
3
Re: Virt-v2v conversion issue
...libguestfs: trace: case_sensitive_path = "/Windows/System32/drivers/viostor.sys" > libguestfs: trace: cp "/usr/share/virtio-win/drivers/amd64/Win2008/viostor.sys" "/Windows/System32/drivers/viostor.sys" > libguestfs: trace: cp = -1 (error) > libguestfs: trace: hivex_close > libguestfs: trace: hivex_close = 0 > virt-v2v: error: libguestfs error: cp: cp: cannot stat > '/sysroot/usr/share/virtio-win/drivers/amd64/Win2008/viostor.sys': No > such file or directory This was fixed yesterday: https://github.com/libguestfs/libguestfs/commit/7b428603e3a6...
2014 Sep 24
4
Re: Virt-v2v conversion issue
...hard for your work, but I have also like Jeff Forbes a new issue : libguestfs: trace: hivex_node_set_value = 0 libguestfs: trace: upload "/usr/share/virtio-win/drivers/amd64/Win2008/viostor.sys" "/Windows/Drivers/VirtIO" libguestfs: trace: upload = -1 (error) libguestfs: trace: hivex_close libguestfs: trace: hivex_close = 0 virt-v2v: error: libguestfs error: upload: /Windows/Drivers/VirtIO: Is a directory If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] libguestfs: trace: close libguestfs: trace: internal_autosync libgue...
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)...
2014 Sep 23
0
Re: Virt-v2v conversion issue
...libguestfs: trace: case_sensitive_path = "/Windows/System32/drivers/viostor.sys" > libguestfs: trace: cp "/usr/share/virtio-win/drivers/amd64/Win2008/viostor.sys" "/Windows/System32/drivers/viostor.sys" > libguestfs: trace: cp = -1 (error) > libguestfs: trace: hivex_close > libguestfs: trace: hivex_close = 0 > virt-v2v: error: libguestfs error: cp: cp: cannot stat > '/sysroot/usr/share/virtio-win/drivers/amd64/Win2008/viostor.sys': No such > file or directory This was fixed yesterday: https://github.com/libguestfs/libguestfs/commit/7b428603e3a6...
2016 Apr 05
1
Re: [PATCH 3/7] customize: add support for pvvxsvc
...building rhsrvany (https://github.com/rwmjones/rhsrvany)") > + virt_tools_data_dir > + ) in ( There's a stray ( here, and lots of code gets reindented for reasons I don't understand but may be connected to that stray (. > + g#hivex_commit None; > + g#hivex_close (); > + > + firstboot_dir > + ) End of the stray ) and reformatting. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual mach...
2017 Feb 17
4
[PATCH libguestfs 0/2] Use unsafe flag when reading (but NOT writing) hives.
Map the HIVEX_OPEN_UNSAFE flag into the libguestfs API and use it in various places. Rich.
2011 Sep 03
1
Patch to build hivex lib on Windows
Hi I'm just posting this here in case someone is interested in building hivex on Windows (mingw32). The attached patch allows building the lib but not the tools (hivexsh etc..) as there are some more problems to solve. In short terms, this patch replaces file i/o functions and mmap(), munmap() with their win32api pendants. cu -- Unix _IS_ user friendly - it's just selective about
2015 May 27
3
Concurrent scanning of same disk
...tance and mount one of the disks. The operation seems successful as I'm gathering the data I am looking for but I suffer from these random failures: * RuntimeError: file receive cancelled by daemon - On r = libguestfsmod.checksums_out (self._o, csumtype, directory, sumsfile) * RuntimeError: hivex_close: do_hivex_close: you must call 'hivex-open' first to initialize the hivex handle - On r = libguestfsmod.inspect_os (self._o) The random nature of the errors make me think about some concurrency problem. The disk images are mounted read only, each process uses a new guestfs instance and mou...
2015 May 28
3
Re: Concurrent scanning of same disk
...5:21 GMT+03:00 Richard W.M. Jones <rjones@redhat.com>: > On Wed, May 27, 2015 at 09:38:38AM +0300, NoxDaFox wrote: > > * RuntimeError: file receive cancelled by daemon - On r = > > libguestfsmod.checksums_out (self._o, csumtype, directory, sumsfile) > > * RuntimeError: hivex_close: do_hivex_close: you must call 'hivex-open' > > first to initialize the hivex handle - On r = libguestfsmod.inspect_os > > (self._o) > > This error is likely to be -EIO (it's actually a bug in libguestfs > that it doesn't report these properly in the error messa...
2012 Aug 29
5
[PATCH 0/4] Add hivex APIs into the libguestfs API (RHBZ#852394)
This adds most of the hivex APIs directly to the libguestfs API, so that you can read and write Windows Registry hive files from libguestfs without needing to download and upload hive files from the guest. This is analogous to how Augeas APIs are exposed already (guestfs_aug_*) Also, inspection is now done using the new APIs, which fixes the following bug:
2016 Apr 05
0
[PATCH 3/7] customize: add support for pvvxsvc
...uot;Parameters" ], - [ "CommandLine", - REG_SZ ("cmd /c \"" ^ firstboot_dir_win ^ "\\firstboot.bat\""); - "PWD", REG_SZ firstboot_dir_win ]; - ] in - reg_import g root_node regedits; - - g#hivex_commit None; - g#hivex_close (); - - firstboot_dir +%s -s firstboot uninstall +" firstboot_dir_win srvany in + + g#write (firstboot_dir // "firstboot.bat") (unix2dos firstboot_script); + + (* Open the SYSTEM hive. *) + let systemroot = g#inspect_get_windows_systemroot root in + let filenam...
2011 Aug 10
1
[PATCH] Report last-modified time of hive root and nodes
...h->hdr->sequence2), + h->last_modified, + le64toh (h->hdr->last_modified), name ? name : "(conversion failed)", le32toh (h->hdr->offset), le32toh (h->hdr->blocks), h->size, @@ -541,6 +543,10 @@ hivex_close (hive_h *h) if (h->msglvl >= 1) fprintf (stderr, "hivex_close\n"); + if (h->last_modified) { + free (h->last_modified); + h->last_modified = NULL; + } free (h->bitmap); if (!h->writable) munmap (h->addr, h->size); @@ -608,6 +614,33 @...
2015 May 27
0
Re: Concurrent scanning of same disk
On Wed, May 27, 2015 at 09:38:38AM +0300, NoxDaFox wrote: > * RuntimeError: file receive cancelled by daemon - On r = > libguestfsmod.checksums_out (self._o, csumtype, directory, sumsfile) > * RuntimeError: hivex_close: do_hivex_close: you must call 'hivex-open' > first to initialize the hivex handle - On r = libguestfsmod.inspect_os > (self._o) This error is likely to be -EIO (it's actually a bug in libguestfs that it doesn't report these properly in the error message). However we cannot...
2014 Oct 22
0
[PATCH] tests: c-api: add $datadir and $databuilddir
...ot;; "/hivex_commit1"]; + [["upload"; "$datadir/minimal"; "/hivex_commit1"]; ["hivex_open"; "/hivex_commit1"; ""; ""; "true"]; ["hivex_commit"; "NULL"]]), [["hivex_close"]]; InitScratchFS, Always, TestResultTrue ( - [["upload"; "$srcdir/../data/minimal"; "/hivex_commit2"]; + [["upload"; "$datadir/minimal"; "/hivex_commit2"]; ["hivex_open"; "/hivex_commit2&...
2011 Aug 10
1
[Hivex][PATCH v2] Report last-modified time of hive root and nodes
...h->hdr->sequence2), + h->last_modified, + le64toh (h->hdr->last_modified), name ? name : "(conversion failed)", le32toh (h->hdr->offset), le32toh (h->hdr->blocks), h->size, @@ -541,6 +583,10 @@ hivex_close (hive_h *h) if (h->msglvl >= 1) fprintf (stderr, "hivex_close\n"); + if (h->last_modified) { + free (h->last_modified); + h->last_modified = NULL; + } free (h->bitmap); if (!h->writable) munmap (h->addr, h->size); @@ -608,6 +654,33 @...
2017 Feb 18
11
[PATCH 0/8] Miscellaneous cleanups to Windows registry code.
A very miscellaneous set of cleanups to how we handle the Windows registry in virt-v2v, firstboot, and inspection code. This should all be straightforward non-controversial refactoring. Some highlights: - Add a new mllib Registry module containing various utility functions that are currently scattered all around. - Only compute the software/system hive paths once during inspection, and