Displaying 12 results from an estimated 12 matches for "pathelem".
2015 Aug 10
0
[PATCH 3/4] v2v: copy virtio drivers without guestfs handle leak
...path, work out what version of Windows
- * this driver is for. Paths can be things like:
- * "NetKVM/2k12R2/amd64/netkvm.sys" or
- * "./drivers/amd64/Win2012R2/netkvm.sys".
- * Note we check lowercase paths.
- *)
- let pathelem elem = string_find lc_path ("/" ^ elem ^ "/") >= 0 in
- let arch =
- if pathelem "x86" || pathelem "i386" then "i386"
- else if pathelem "amd64" then "x86_64"
- else raise Not_found in...
2015 Oct 13
2
[PATCH v2 2/4] v2v: copy virtio drivers without guestfs handle leak
...path, work out what version of Windows
- * this driver is for. Paths can be things like:
- * "NetKVM/2k12R2/amd64/netkvm.sys" or
- * "./drivers/amd64/Win2012R2/netkvm.sys".
- * Note we check lowercase paths.
- *)
- let pathelem elem = String.find lc_path ("/" ^ elem ^ "/") >= 0 in
- let arch =
- if pathelem "x86" || pathelem "i386" then "i386"
- else if pathelem "amd64" then "x86_64"
- else raise Not_found in...
2015 Aug 10
15
[PATCH 0/4] v2v: simplify driver copying from virtio-win iso
Libguestfs supports passing an ISO image as a source of virtio windows
drivers to v2v.
That support, however, looks too heavy-weight: in order to access those
drivers, a separate guestfs handle is created (and thus a new emulator
process is started), which runs until v2v completes.
This series attempts to make it simpler and lighter-weight, by making
the relevant code more local, and by
2015 Oct 14
5
[PATCH v3 0/3] v2v: simplify driver copying from virtio-win iso
Libguestfs supports passing an ISO image as a source of virtio windows
drivers to v2v.
This series attempts to make it simpler and better scoped.
Roman Kagan (3):
v2v: consolidate virtio-win file copying
v2v: copy virtio drivers without guestfs handle leak
v2v: drop useless forced gc
---
changes since v2:
- drop patch 4 (reuse of the master guestfs handle for hot-adding the
ISO image)
2015 Jun 23
0
[PATCH v2] v2v: Support loading virtio-win drivers from virtio-win.iso (RHBZ#1234351).
...path, work out what version of Windows
+ * this driver is for. Paths can be things like:
+ * "NetKVM/2k12R2/amd64/netkvm.sys" or
+ * "./drivers/amd64/Win2012R2/netkvm.sys".
+ * Note we check lowercase paths.
+ *)
+ let pathelem elem = string_find lc_path ("/" ^ elem ^ "/") >= 0 in
+ let arch =
+ if pathelem "x86" || pathelem "i386" then "i386"
+ else if pathelem "amd64" then "x86_64"
+ else raise Not_found in...
2015 Jun 23
2
[PATCH v2] v2v: Support loading virtio-win drivers from
In version 2:
- Add a bunch of debugging output.
- Recognize Windows Vista, Windows 10.
- Compare driver paths case-insensitively.
2015 Jun 22
2
[PATCH] v2v: Support loading virtio-win drivers from virtio-win.iso (RHBZ#1234351).
...ise Not_found;
+
+ (* Using the full path, work out what version of Windows
+ * this driver is for. Paths can be things like:
+ * "NetKVM/2k12R2/amd64/netkvm.sys" or
+ * "./drivers/amd64/Win2012R2/netkvm.sys".
+ *)
+ let pathelem elem = string_find path ("/" ^ elem ^ "/") >= 0 in
+ let arch =
+ if pathelem "x86" || pathelem "i386" then "i386"
+ else if pathelem "amd64" then "x86_64"
+ else raise Not_found in
+...
2016 Jul 12
1
[PATCH] v2v: Add support for Win2016 virtio drivers
...2 ++
1 file changed, 2 insertions(+)
diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml
index 354aa19..334e347 100644
--- a/v2v/windows_virtio.ml
+++ b/v2v/windows_virtio.ml
@@ -330,6 +330,8 @@ and virtio_iso_path_matches_guest_os path inspect =
(6, 3, not_client)
else if pathelem "w10" || pathelem "win10" then
(10, 0, is_client)
+ else if pathelem "2k16" || pathelem "win2016" then
+ (10, 0, not_client)
else
raise Not_found in
--
2.9.0
2015 Nov 17
0
[PATCH 3/3] v2v: windows: Use '*.inf' files to control how Windows drivers are installed.
...Not_found;
-
- (* Using the full path, work out what version of Windows
- * this driver is for. Paths can be things like:
- * "NetKVM/2k12R2/amd64/netkvm.sys" or
- * "./drivers/amd64/Win2012R2/netkvm.sys".
- * Note we check lowercase paths.
- *)
- let pathelem elem = String.find lc_path ("/" ^ elem ^ "/") >= 0 in
- let p_arch =
- if pathelem "x86" || pathelem "i386" then "i386"
- else if pathelem "amd64" then "x86_64"
- else raise Not_found in
-
- let is_client...
2015 Nov 17
8
[PATCH 0/3] v2v: windows: Use '*.inf' files to control how Windows drivers are installed.
https://github.com/rwmjones/libguestfs/tree/rewrite-virtio-copy-drivers
Instead of trying to split and parse elements from virtio-win paths,
use the '*.inf' files supplied with the drivers to control how Windows
drivers are installed.
The following emails best explain how this works:
https://www.redhat.com/archives/libguestfs/2015-October/msg00352.html
2015 Oct 06
0
[PATCH 5/5] mllib: Replace various ad hoc string_* functions with String.*
...let str = String.replace str ">" ">" in
str
(* URI quoting. *)
@@ -252,7 +252,7 @@ let find_virtio_win_drivers virtio_win =
* "./drivers/amd64/Win2012R2/netkvm.sys".
* Note we check lowercase paths.
*)
- let pathelem elem = string_find lc_path ("/" ^ elem ^ "/") >= 0 in
+ let pathelem elem = String.find lc_path ("/" ^ elem ^ "/") >= 0 in
let arch =
if pathelem "x86" || pathelem "i386" then "i386"...
2015 Oct 06
10
[PATCH 0/5] mllib: Hide bad String functions and miscellaneous refactoring.
Hide/prevent the use of bad string functions like String.lowercase.
These are replaced by safe functions that won't break UTF-8 strings.
Other miscellaneous refactoring.
Rich.