Displaying 20 results from an estimated 900 matches similar to: "[PATCH v2] daemon: inspect: better handling windows drive mapping."
2018 May 18
0
[PATCH] daemon: inspect: better handling windows drive mapping.
I have several Windows disk images which contains strange registry entry
for mapped drives:
"\\DosDevices\\Y:"=hex(3):00,00,00,00,00,00,00,00,00,00,00,00
Which is decoded something like diskID = 0x0, partition starts at
0 bytes from the start of the disk. In addition of Windows disk image
I have attached dummy disk and made xfs file system on a whole device
without partitioning it. I
2020 Jun 30
2
[PATCH] daemon: inspect_fs_windows: Handle parted errors
By creating an empty disk and using it as the first disk of the vm (i.e.
/dev/sda, /dev/sdb{1,2} contains the windows fses) we change the
iteration order of the disks.
This causes inspect_os() to fail since Parted returns a Unix_error if
the device does not contain any partitions - fix this by handling this
Unix_error.
Signed-off-by: Sam Eiderman <sameid@google.com>
---
2020 Jun 30
1
Re: [PATCH] daemon: inspect_fs_windows: Handle parted errors
Yea, I noticed that commit, but since it was used in gpt too
regardless of that commit, I decided not to mention this regression.
I also noticed that list_filesystems() still works, this is probably
due to filtering of devices (daemon/listfs.ml):
"let devices = List.filter is_not_partitioned_device devices in"
What do you have in mind here?
On Tue, Jun 30, 2020 at 12:33 PM Pino
2020 Jun 30
0
Re: [PATCH] daemon: inspect_fs_windows: Handle parted errors
On Tuesday, 30 June 2020 10:33:40 CEST Sam Eiderman wrote:
> By creating an empty disk and using it as the first disk of the vm (i.e.
> /dev/sda, /dev/sdb{1,2} contains the windows fses) we change the
> iteration order of the disks.
> This causes inspect_os() to fail since Parted returns a Unix_error if
> the device does not contain any partitions - fix this by handling this
>
2017 Jul 31
0
[PATCH v11 09/10] daemon: Implement inspection of Windows.
Mostly a line-for-line translation of the C inspection code.
---
daemon/Makefile.am | 2 +
daemon/inspect_fs.ml | 6 +
daemon/inspect_fs_windows.ml | 491 ++++++++++++++++++++++++++++++++++++++++++
daemon/inspect_fs_windows.mli | 24 +++
4 files changed, 523 insertions(+)
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index a4657ed86..80314a524 100644
---
2018 Apr 09
0
[PATCH 2/3] daemon: use the structs from the Structs module
No need to redeclare them again in few modules, just use them from the
Structs module.
---
daemon/btrfs.mli | 8 +-------
daemon/inspect_fs_windows.ml | 4 ++--
daemon/listfs.ml | 4 ++--
daemon/parted.mli | 9 +--------
daemon/statvfs.mli | 16 +---------------
5 files changed, 7 insertions(+), 34 deletions(-)
diff --git a/daemon/btrfs.mli
2018 Apr 10
0
[PATCH v2 2/5] daemon: use the structs from the Structs module
No need to redeclare them again in few modules, just use them from the
Structs module.
---
daemon/btrfs.mli | 8 +-------
daemon/inspect_fs_windows.ml | 4 ++--
daemon/listfs.ml | 4 ++--
daemon/parted.mli | 9 +--------
daemon/statvfs.mli | 16 +---------------
5 files changed, 7 insertions(+), 34 deletions(-)
diff --git a/daemon/btrfs.mli
2017 Oct 17
1
[PATCH] daemon: simplify usage of Chroot.f
Rely on currying, and avoid extra helper functions.
No behaviour changes.
---
daemon/inspect_fs_unix.ml | 20 ++++++++++----------
daemon/inspect_fs_windows.ml | 2 +-
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/daemon/inspect_fs_unix.ml b/daemon/inspect_fs_unix.ml
index 59e26a05e..3ad119306 100644
--- a/daemon/inspect_fs_unix.ml
+++ b/daemon/inspect_fs_unix.ml
@@ -68,7
2012 Mar 15
0
[PATCH] inspect: Ignore missing HKLM\SYSTEM\MountedDevices (RHBZ#803664).
From: "Richard W.M. Jones" <rjones at redhat.com>
When a Windows guest doesn't have a HKLM\SYSTEM\MountedDevices node,
inspection fails. However inspection should not completely fail just
because we cannot get the drive letter mapping from a guest.
---
src/inspect_fs_windows.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git
2016 Feb 05
0
Re: [PATCH] inspect: get windows drive letters for GPT disks.
On Fri, Feb 05, 2016 at 12:15:32PM -0500, Dawid Zamirski wrote:
> This patch updates the guestfs_inspect_get_drive_mappings API call to
> also return drive letters for GPT paritions. Previously this worked
> only for MBR partitions. This is achieved by matching the GPT partition
> GUID with the info stored in the blob from
> HKLM\SYSTEM\MountedDevices\DosDevices keys. For GPT
2016 Feb 06
1
[PATCH v3] inspect: get windows drive letters for GPT disks.
This patch updates the guestfs_inspect_get_drive_mappings API call to
also return drive letters for GPT paritions. Previously this worked
only for MBR partitions. This is achieved by matching the GPT partition
GUID with the info stored in the blob from
HKLM\SYSTEM\MountedDevices\DosDevices keys. For GPT partions this blob
contains a "DMIO:ID:" prefix followed by a 16 byte binary GUID.
2013 Feb 25
1
[PATCH] lib: avoid pragma usage in inspect-fs-windows
pragma GCC diagnostic is a gcc 4.6+ feature, compilation fails with
older compilers:
inspect-fs-windows.c: In function 'map_registry_disk_blob':
inspect-fs-windows.c:502: error: #pragma GCC diagnostic not allowed inside functions
inspect-fs-windows.c:503: error: #pragma GCC diagnostic not allowed inside functions
inspect-fs-windows.c:505: error: #pragma GCC diagnostic not allowed inside
2016 Feb 05
1
Re: [PATCH] inspect: get windows drive letters for GPT disks.
On Fri, 2016-02-05 at 18:08 +0000, Richard W.M. Jones wrote:
> On Fri, Feb 05, 2016 at 12:15:32PM -0500, Dawid Zamirski wrote:
> > This patch updates the guestfs_inspect_get_drive_mappings API call
> > to
> > also return drive letters for GPT paritions. Previously this worked
> > only for MBR partitions. This is achieved by matching the GPT
> > partition
> >
2016 Feb 05
2
[PATCHv2] inspect: get windows drive letters for GPT disks.
This patch updates the guestfs_inspect_get_drive_mappings API call to
also return drive letters for GPT paritions. Previously this worked
only for MBR partitions. This is achieved by matching the GPT partition
GUID with the info stored in the blob from
HKLM\SYSTEM\MountedDevices\DosDevices keys. For GPT partions this blob
contains a "DMIO:ID:" prefix followed by a 16 byte binary GUID.
2013 Jan 25
4
[PATCH 0/3] Use __attribute__((cleanup(...)))
This patch series changes a small part of the library to use
__attribute__((cleanup(...))) to automatically free memory when
pointers go out of the current scope.
In general terms this seems to be a small win although you do have to
use it carefully. For functions where you can completely get rid of
the "exit code paths", it can simplify things. For a good example,
see the
2016 Feb 05
3
[PATCH] inspect: get windows drive letters for GPT disks.
This patch updates the guestfs_inspect_get_drive_mappings API call to
also return drive letters for GPT paritions. Previously this worked
only for MBR partitions. This is achieved by matching the GPT partition
GUID with the info stored in the blob from
HKLM\SYSTEM\MountedDevices\DosDevices keys. For GPT partions this blob
contains a "DMIO:ID:" prefix followed by a 16 byte binary GUID.
2005 Mar 01
3
retrieve drive letter of USB Media.
Does SYSLINUX have any idea which DOS driveletter would be assigned to the disk it is booting from?
At www.veder.com someone is trying to build a USB flash drive.
However, FreeDOS does not seem to boot correctly from it
(bootsector trouble maybe, or kernel itself is confusing drives),
thus we're thinking of using Syslinux + Memdisk + bootimage,
but somehow we want to be able to also access the
2018 Apr 09
5
[PATCH 0/3] daemon: generate almost all the API OCaml interfaces
Hi,
as a followup for the signature fix for mount_vfs [1], here it is a
patch series to generate automatically most of the OCaml interfaces of
daemon actions. Only the Lvm and Mount modules are left with
hand-written interfaces.
[1] https://www.redhat.com/archives/libguestfs/2018-April/msg00059.html
Thanks,
Pino Toscano (3):
daemon: directly use Optgroups
daemon: use the structs from the
2017 Nov 07
0
[PATCH] common/mlstdutils: Add with_openfile function.
This safe wrapper around Unix.openfile ensures that exceptions
escaping cannot leave unclosed files.
There are only a few places in the code where this wrapper can be used
currently. There are other occurences of Unix.openfile but they are
not suitable for replacement.
---
common/mlstdutils/std_utils.ml | 4 ++++
common/mlstdutils/std_utils.mli | 6 ++++++
daemon/devsparts.ml | 5
2017 Nov 05
0
[PATCH 2/2] common/mlstdutils: Add with_openfile function.
This safe wrapper around Unix.openfile ensures that exceptions
escaping cannot leave unclosed files.
There are only a few places in the code where this wrapper can be used
currently. There are other occurences of Unix.openfile but they are
not suitable for replacement.
---
common/mlstdutils/std_utils.ml | 4 ++++
common/mlstdutils/std_utils.mli | 6 ++++++
daemon/devsparts.ml |