Displaying 20 results from an estimated 21 matches for "saved_filenam".
Did you mean:
saved_filename
2015 Oct 20
1
[PATCH v3 08/13] v2v: factor out preserving overlays for debugging
...ata source targets target_buses guestcaps inspect
target_firmware;
- (* Save overlays if --debug-overlays option was used. *)
- if debug_overlays then (
- let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
- List.iter (
- fun ov ->
- let saved_filename =
- sprintf "%s/%s-%s.qcow2" overlay_dir source.s_name ov.ov_sd in
- rename ov.ov_overlay_file saved_filename;
- printf (f_"Overlay saved as %s [--debug-overlays]\n") saved_filename
- ) overlays
- );
+ if debug_overlays then preserve_overlays overlay...
2019 Oct 09
3
[PATCH] v2v: Output saved overlays in a machine-readable fashion
...v/v2v.ml
index 4ee15663f261..508a2b4f39a5 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -815,13 +815,28 @@ and actual_target_size target_file disk_stats =
(* Save overlays if --debug-overlays option was used. *)
and preserve_overlays overlays src_name =
- List.iter (
- fun ov ->
- let saved_filename =
- sprintf "%s/%s-%s.qcow2" overlay_dir src_name ov.ov_sd in
- rename ov.ov_overlay_file saved_filename;
- info (f_"Overlay saved as %s [--debug-overlays]") saved_filename
- ) overlays
+ let filenames = List.map (
+ fun ov ->
+ let saved_f...
2019 Oct 10
0
Re: [PATCH] v2v: Output saved overlays in a machine-readable fashion
...644
> --- a/v2v/v2v.ml
> +++ b/v2v/v2v.ml
> @@ -815,13 +815,28 @@ and actual_target_size target_file disk_stats =
>
> (* Save overlays if --debug-overlays option was used. *)
> and preserve_overlays overlays src_name =
> - List.iter (
> - fun ov ->
> - let saved_filename =
> - sprintf "%s/%s-%s.qcow2" overlay_dir src_name ov.ov_sd in
> - rename ov.ov_overlay_file saved_filename;
> - info (f_"Overlay saved as %s [--debug-overlays]") saved_filename
> - ) overlays
> + let filenames = List.map (
> + fun o...
2019 Oct 11
6
Re: [PATCH] v2v: Output saved overlays in a machine-readable fashion
...> +++ b/v2v/v2v.ml
>> @@ -815,13 +815,28 @@ and actual_target_size target_file disk_stats =
>>
>> (* Save overlays if --debug-overlays option was used. *)
>> and preserve_overlays overlays src_name =
>> - List.iter (
>> - fun ov ->
>> - let saved_filename =
>> - sprintf "%s/%s-%s.qcow2" overlay_dir src_name ov.ov_sd in
>> - rename ov.ov_overlay_file saved_filename;
>> - info (f_"Overlay saved as %s [--debug-overlays]") saved_filename
>> - ) overlays
>> + let filenames = List.map (...
2020 Apr 06
0
[v2v PATCH 2/2] Consolidate handling of temporary files/dirs
...:cachedir "v2vovl" ".qcow2" in
(* There is a specific reason to use the newer qcow2 variant:
* Because the L2 table can store zero clusters efficiently, and
@@ -823,7 +820,7 @@ and preserve_overlays overlays src_name =
List.iter (
fun ov ->
let saved_filename =
- sprintf "%s/%s-%s.qcow2" overlay_dir src_name ov.ov_sd in
+ sprintf "%s/%s-%s.qcow2" cachedir src_name ov.ov_sd in
rename ov.ov_overlay_file saved_filename;
info (f_"Overlay saved as %s [--debug-overlays]") saved_filename
) overlays...
2020 Apr 06
0
[PATCH virt-v2v v2 2/2] v2v: Allow large temporary directory to be set on a global basis.
...Filename.temp_file ~temp_dir:large_tmpdir "v2vovl" ".qcow2" in
unlink_on_exit overlay_file;
(* There is a specific reason to use the newer qcow2 variant:
@@ -823,7 +821,7 @@ and preserve_overlays overlays src_name =
List.iter (
fun ov ->
let saved_filename =
- sprintf "%s/%s-%s.qcow2" overlay_dir src_name ov.ov_sd in
+ sprintf "%s/%s-%s.qcow2" large_tmpdir src_name ov.ov_sd in
rename ov.ov_overlay_file saved_filename;
info (f_"Overlay saved as %s [--debug-overlays]") saved_filename
) overl...
2015 Oct 20
1
[PATCH v3 02/13] v2v: factor out overlay creation
...y errors to the user before doing too much
* work.
@@ -385,6 +338,7 @@ let rec main () =
(* Save overlays if --debug-overlays option was used. *)
if debug_overlays then (
+ let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
List.iter (
fun ov ->
let saved_filename =
@@ -460,6 +414,45 @@ and amend_source source output_name network_map =
{ source with s_nics = nics }
+and create_overlays src_disks =
+ (* Create a qcow2 v3 overlay to protect the source image(s). There
+ * is a specific reason to use the newer qcow2 variant: Because the
+ * L2 tabl...
2020 Apr 06
4
[v2v PATCH 1/2] v2v: nbdkit: change base dir for nbdkit sockets/pidfiles
Since this new temporary directory will contain UNIX sockets for
communicating with nbdkit, then its path must not be too long.
Use the existing directory that libguestfs exposes for this, i.e.
sockdir.
---
v2v/nbdkit.ml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/v2v/nbdkit.ml b/v2v/nbdkit.ml
index 65317f9b..46b20c9d 100644
--- a/v2v/nbdkit.ml
+++ b/v2v/nbdkit.ml
2015 Aug 11
41
[PATCH v2 00/17] v2v: add --in-place mode
This series is a second attempt to add a mode of virt-v2v operation
where it leaves the config and disk image conversion, rollback on
errors, registering with the destination hypervisor, etc. to a
third-party toolset, and performs only tuning of the guest OS to run in
the KVM-based hypervisor.
The first 14 patches are just refactoring and rearrangement of the code,
factoring the implementation
2020 Apr 06
6
[PATCH virt-v2v v2 0/2] v2v: Large temporary directory handling.
v1 was here:
https://www.redhat.com/archives/libguestfs/2020-April/msg00007.html
There's a BZ for this now which I forgot to add to the commit message:
https://bugzilla.redhat.com/show_bug.cgi?id=1814611
For v2:
- Fix incorrect reference to $TMPDIR in existing manual.
- Separate handling for small temporary files and large temporary
files. Small temporary files go into $TMPDIR
2015 Oct 21
2
[PATCH] v2v: use open_guestfs everywhere
...source targets guestcaps =
and preserve_overlays overlays src_name =
(* Save overlays if --debug-overlays option was used. *)
- let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
+ let overlay_dir = (open_guestfs ())#get_cachedir () in
List.iter (
fun ov ->
let saved_filename =
--
2.1.0
2016 Feb 09
0
[PATCH 4/4] v2v: in-place: request caps based on source config
...}
+ | In_place ->
+ rcaps_from_source source
+ in
let guestcaps = do_convert g inspect source keep_serial_console rcaps in
g#umount_all ();
@@ -974,4 +980,43 @@ and preserve_overlays overlays src_name =
printf (f_"Overlay saved as %s [--debug-overlays]\n") saved_filename
) overlays
+and rcaps_from_source source =
+ (* Request guest caps based on source configuration. *)
+
+ (* rely on s_controller enum being in ascending preference order, and None
+ * being smaller than Some anything *)
+ let best_block_type =
+ List.fold_left max None
+ (List.ma...
2016 Feb 20
0
[PATCH v2 4/4] v2v: in-place: request caps based on source config
...}
+ | In_place ->
+ rcaps_from_source source
+ in
let guestcaps = do_convert g inspect source keep_serial_console rcaps in
g#umount_all ();
@@ -974,4 +980,43 @@ and preserve_overlays overlays src_name =
printf (f_"Overlay saved as %s [--debug-overlays]\n") saved_filename
) overlays
+and rcaps_from_source source =
+ (* Request guest caps based on source configuration. *)
+
+ (* rely on s_controller enum being in ascending preference order, and None
+ * being smaller than Some anything *)
+ let best_block_type =
+ List.fold_left max None
+ (List.ma...
2020 Apr 02
6
[PATCH virt-v2v] v2v: Allow temporary directory to be set on a global basis.
...ot;v2vovl" ".qcow2" in
unlink_on_exit overlay_file;
(* There is a specific reason to use the newer qcow2 variant:
@@ -822,8 +820,7 @@ and actual_target_size target_file disk_stats =
and preserve_overlays overlays src_name =
List.iter (
fun ov ->
- let saved_filename =
- sprintf "%s/%s-%s.qcow2" overlay_dir src_name ov.ov_sd in
+ let saved_filename = sprintf "%s/%s-%s.qcow2" tmpdir src_name ov.ov_sd in
rename ov.ov_overlay_file saved_filename;
info (f_"Overlay saved as %s [--debug-overlays]") saved_filena...
2015 Aug 11
0
[PATCH v2 03/17] v2v: factor out overlay creation
...y errors to the user before doing too much
* work.
@@ -451,6 +443,7 @@ let rec main () =
(* Save overlays if --debug-overlays option was used. *)
if debug_overlays then (
+ let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
List.iter (
fun ov ->
let saved_filename =
--
2.4.3
2015 Oct 21
0
Re: [PATCH] v2v: use open_guestfs everywhere
...and preserve_overlays overlays src_name =
> (* Save overlays if --debug-overlays option was used. *)
> - let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
> + let overlay_dir = (open_guestfs ())#get_cachedir () in
> List.iter (
> fun ov ->
> let saved_filename =
> --
> 2.1.0
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs@redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming an...
2016 Feb 22
2
Re: [PATCH v2 4/4] v2v: in-place: request caps based on source config
...rcaps_from_source source
> + in
> let guestcaps = do_convert g inspect source keep_serial_console rcaps in
>
> g#umount_all ();
> @@ -974,4 +980,43 @@ and preserve_overlays overlays src_name =
> printf (f_"Overlay saved as %s [--debug-overlays]\n") saved_filename
> ) overlays
>
> +and rcaps_from_source source =
> + (* Request guest caps based on source configuration. *)
> +
> + (* rely on s_controller enum being in ascending preference order, and None
> + * being smaller than Some anything *)
> + let best_block_type =
>...
2016 Feb 20
8
[PATCH v2 0/4] v2v: more control over device types
The decision on which device type to use for disks, network and video
cards on output used to be taken deep inside the converting functions.
This is not always desirable. In particular, there are scenarios when
this decision is made before the convertion takes place. E.g. in
in-place mode, the decisions are taken and the output VM configuration
is created outside of v2v tool.
This patchset
2016 Mar 11
6
[PATCH v3 0/5] v2v: more control over device types
The decision on which device type to use for disks, network and video
cards on output used to be taken deep inside the converting functions.
This is not always desirable. In particular, there are scenarios when
this decision is made before the convertion takes place. E.g. in
in-place mode, the decisions are taken and the output VM configuration
is created outside of v2v tool.
This patchset
2016 Mar 18
10
[PATCH v4 0/5] v2v: more control over device types
The decision on which device type to use for disks, network and video
cards on output used to be taken deep inside the converting functions.
This is not always desirable. In particular, there are scenarios when
this decision is made before the convertion takes place. E.g. in
in-place mode, the decisions are taken and the output VM configuration
is created outside of v2v tool.
This patchset