Displaying 9 results from an estimated 9 matches for "match_vio_path_with_os".
2015 Oct 13
2
[PATCH v2 2/4] v2v: copy virtio drivers without guestfs handle leak
...g#write (driverdir // driver.vwd_filename) content
- ) drivers
+ if is_directory virtio_win then (
+ let cmd = sprintf "cd %s && find -type f" (quote virtio_win) in
+ let paths = external_command cmd in
+ List.iter (
+ fun path ->
+ if (match_vio_path_with_os path inspect.i_arch
+ inspect.i_major_version inspect.i_minor_version
+ inspect.i_product_variant) then (
+ let source = virtio_win // path in
+ let target = driverdir // (String.lowercase_ascii
+ (Filename.basen...
2015 Oct 05
3
Re: [PATCH 0/4] v2v: simplify driver copying from virtio-win iso
..." vio_root;
> > let paths = g2#find vio_root in
> > Array.iter (
> > fun path ->
> > let source = vio_root // path in
> > if ((g2#is_file source ~followsymlinks:false) &&
> > (match_vio_path_with_os path inspect.i_arch
> > inspect.i_major_version inspect.i_minor_version
> > inspect.i_product_variant)) then
> > ^^^
> >
> > which makes me think this code can't possi...
2015 Oct 01
2
Re: [PATCH 0/4] v2v: simplify driver copying from virtio-win iso
...und the then clause in:
g2#mount_ro "/dev/sda" vio_root;
let paths = g2#find vio_root in
Array.iter (
fun path ->
let source = vio_root // path in
if ((g2#is_file source ~followsymlinks:false) &&
(match_vio_path_with_os path inspect.i_arch
inspect.i_major_version inspect.i_minor_version
inspect.i_product_variant)) then
^^^
which makes me think this code can't possibly work.
- Calling String.lowercase is unsafe (b...
2015 Oct 05
0
Re: [PATCH 0/4] v2v: simplify driver copying from virtio-win iso
...; let paths = g2#find vio_root in
> > > Array.iter (
> > > fun path ->
> > > let source = vio_root // path in
> > > if ((g2#is_file source ~followsymlinks:false) &&
> > > (match_vio_path_with_os path inspect.i_arch
> > > inspect.i_major_version inspect.i_minor_version
> > > inspect.i_product_variant)) then
> > > ^^^
> > >
> > > which makes me think...
2015 Aug 10
0
[PATCH 3/4] v2v: copy virtio drivers without guestfs handle leak
...g#write (driverdir // driver.vwd_filename) content
- ) drivers
+ if is_directory virtio_win then (
+ let cmd = sprintf "cd %s && find -type f" (quote virtio_win) in
+ let paths = external_command cmd in
+ List.iter (
+ fun path ->
+ if (match_vio_path_with_os path inspect.i_arch
+ inspect.i_major_version inspect.i_minor_version
+ inspect.i_product_variant) then (
+ let source = virtio_win // path in
+ let target = driverdir // (String.lowercase
+ (Filename.basename pa...
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 06
3
Re: [PATCH 0/4] v2v: simplify driver copying from virtio-win iso
...#find vio_root in
> > > > Array.iter (
> > > > fun path ->
> > > > let source = vio_root // path in
> > > > if ((g2#is_file source ~followsymlinks:false) &&
> > > > (match_vio_path_with_os path inspect.i_arch
> > > > inspect.i_major_version inspect.i_minor_version
> > > > inspect.i_product_variant)) then
> > > > ^^^
> > > >
> > > >...
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 Oct 01
0
Re: [PATCH 0/4] v2v: simplify driver copying from virtio-win iso
...g2#mount_ro "/dev/sda" vio_root;
> let paths = g2#find vio_root in
> Array.iter (
> fun path ->
> let source = vio_root // path in
> if ((g2#is_file source ~followsymlinks:false) &&
> (match_vio_path_with_os path inspect.i_arch
> inspect.i_major_version inspect.i_minor_version
> inspect.i_product_variant)) then
> ^^^
>
> which makes me think this code can't possibly work.
Indeed. It fa...