Displaying 2 results from an estimated 2 matches for "print_source_disk_size_estimate".
2018 Aug 14
2
[PATCH] v2v: Add --print-estimate option to print source size estimate.
...+
+rm -f $f
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 1775200d3..e24a9adf6 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -104,6 +104,12 @@ let rec main () =
(* Decrypt the disks. *)
inspect_decrypt g;
+ (* Print source disk size estimate and stop. *)
+ if cmdline.print_estimate then (
+ print_source_disk_size_estimate cmdline g;
+ exit 0
+ );
+
(* Inspection - this also mounts up the filesystems. *)
(match conversion_mode with
| Copying _ -> message (f_"Inspecting the overlay")
@@ -371,6 +377,48 @@ and print_mpstat chan { mp_dev = dev; mp_path = path;
fprintf chan " bsize=%Ld...
2018 Aug 14
0
Re: [PATCH] v2v: Add --print-estimate option to print source size estimate.
...> index 1775200d3..e24a9adf6 100644
> --- a/v2v/v2v.ml
> +++ b/v2v/v2v.ml
> @@ -104,6 +104,12 @@ let rec main () =
> (* Decrypt the disks. *)
> inspect_decrypt g;
>
> + (* Print source disk size estimate and stop. *)
> + if cmdline.print_estimate then (
> + print_source_disk_size_estimate cmdline g;
> + exit 0
> + );
> +
> (* Inspection - this also mounts up the filesystems. *)
> (match conversion_mode with
> | Copying _ -> message (f_"Inspecting the overlay")
> @@ -371,6 +377,48 @@ and print_mpstat chan { mp_dev = dev; mp_path = path;...