Displaying 5 results from an estimated 5 matches for "map_registry_disk_blob_mbr".
2018 Jun 01
1
[PATCH v2] daemon: inspect: better handling windows drive mapping.
...ata =
String.is_prefix blob "DMIO:ID:" (* GPT *) then
map_registry_disk_blob_gpt (Lazy.force partitions) blob
else if String.length blob = 12 then
- map_registry_disk_blob (Lazy.force devices) blob
+ map_registry_disk_blob_mbr (Lazy.force devices) blob
else
None
)
@@ -356,13 +356,18 @@ and get_drive_mappings h root data =
* The following function maps this blob to a libguestfs partition
* name, if possible.
*)
-and map_registry_disk_blob devices blob =
+and map_reg...
2020 Jun 30
2
[PATCH] daemon: inspect_fs_windows: Handle parted errors
...daemon/inspect_fs_windows.ml | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/daemon/inspect_fs_windows.ml b/daemon/inspect_fs_windows.ml
index c4a05bc38..bc6b98b60 100644
--- a/daemon/inspect_fs_windows.ml
+++ b/daemon/inspect_fs_windows.ml
@@ -365,8 +365,10 @@ and map_registry_disk_blob_mbr devices blob =
let device =
List.find (
fun dev ->
- Parted.part_get_parttype dev = "msdos" &&
- pread dev 4 0x01b8 = diskid
+ try
+ Parted.part_get_parttype dev = "msdos" &&
+ pread dev...
2018 May 18
0
[PATCH] daemon: inspect: better handling windows drive mapping.
...ata =
String.is_prefix blob "DMIO:ID:" (* GPT *) then
map_registry_disk_blob_gpt (Lazy.force partitions) blob
else if String.length blob = 12 then
- map_registry_disk_blob (Lazy.force devices) blob
+ map_registry_disk_blob_mbr (Lazy.force devices) blob
else
None
)
@@ -356,13 +356,18 @@ and get_drive_mappings h root data =
* The following function maps this blob to a libguestfs partition
* name, if possible.
*)
-and map_registry_disk_blob devices blob =
+and map_reg...
2020 Jun 30
1
Re: [PATCH] daemon: inspect_fs_windows: Handle parted errors
...nged, 8 insertions(+), 3 deletions(-)
> >
> > diff --git a/daemon/inspect_fs_windows.ml b/daemon/inspect_fs_windows.ml
> > index c4a05bc38..bc6b98b60 100644
> > --- a/daemon/inspect_fs_windows.ml
> > +++ b/daemon/inspect_fs_windows.ml
> > @@ -365,8 +365,10 @@ and map_registry_disk_blob_mbr devices blob =
> > let device =
> > List.find (
> > fun dev ->
> > - Parted.part_get_parttype dev = "msdos" &&
> > - pread dev 4 0x01b8 = diskid
> > + try
> > + Parted.part_ge...
2020 Jun 30
0
Re: [PATCH] daemon: inspect_fs_windows: Handle parted errors
...++++++++---
> 1 file changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/daemon/inspect_fs_windows.ml b/daemon/inspect_fs_windows.ml
> index c4a05bc38..bc6b98b60 100644
> --- a/daemon/inspect_fs_windows.ml
> +++ b/daemon/inspect_fs_windows.ml
> @@ -365,8 +365,10 @@ and map_registry_disk_blob_mbr devices blob =
> let device =
> List.find (
> fun dev ->
> - Parted.part_get_parttype dev = "msdos" &&
> - pread dev 4 0x01b8 = diskid
> + try
> + Parted.part_get_parttype dev = "msdos"...