Displaying 16 results from an estimated 16 matches for "estimated_size".
2017 Nov 16
0
Re: [Qemu-devel] [qemu-img] support for XVA
...nt-Transfer-Encoding: quoted-printable
use strict;=0A=0Amy %config =3D ();=0Amy %block =3D ();=0A=0A# XXX Should p=
arse the virtual size from size from the XML document.=0A# Instead we estim=
ate the size here, and the user can override=0A# it by setting the optional=
size=3D... parameter.=0Amy $estimated_size;=0A=0A# Does XVA define this? =
We might need to read it from the file=0A# somehow.=0Amy $block_size =3D 10=
48576;=0A=0Asub config=0A{=0A my $key =3D shift;=0A my $value =3D shi=
ft;=0A $config{$key} =3D $value;=0A}=0A=0Asub config_complete=0A{=0A =
die "no file=3D... parameter g...
2018 Aug 23
0
[PATCH v4] v2v: Add --print-estimate option to print copy size estimate.
...le the command line. *)
let cmdline, input, output = parse_cmdline () in
@@ -156,6 +158,22 @@ let rec main () =
(match conversion_mode with
| In_place -> ()
| Copying overlays ->
+ (* Print copy size estimate and stop. *)
+ if cmdline.print_estimate then (
+ let estimated_size =
+ sum (List.map
+ (fun { ov_overlay_file } ->
+ Measure_disk.measure ~format:"qcow2" ov_overlay_file)
+ overlays) in
+ (match machine_readable () with
+ | None ->
+ printf "%Ld\n" estima...
2018 Aug 23
2
[PATCH v4] v2v: Add --print-estimate option to print copy size estimate.
v4:
- Same as v3, but depends on and uses new --machine-readable work.
Rich.
2017 Nov 15
10
Re: [Qemu-devel] [qemu-img] support for XVA
2017-11-15 21:29 GMT+01:00 Richard W.M. Jones <rjones@redhat.com>:
> Gandalf, is there an XVA file publically available (pref. not
> too big) that we can look at?
I can try to provide one, but it's simple:
# tar tvf 20160630_124823_aa72_.xva.gz | head -n 50
---------- 0/0 42353 1970-01-01 01:00 ova.xml
---------- 0/0 1048576 1970-01-01 01:00 Ref:175/00000000
2016 May 22
0
[PATCH 2/2] ocaml tools: Use a common debug function.
...;estimate_target_size: scaled_saving = %Ld [%s]"
+ scaled_saving (human_size scaled_saving);
(* (5) *)
let targets = List.map (
@@ -510,9 +504,8 @@ and estimate_target_size mpstats targets =
Int64.to_float size /. Int64.to_float source_total_size in
let estimated_size =
size -^ Int64.of_float (proportion *. Int64.to_float scaled_saving) in
- if verbose () then
- printf "estimate_target_size: %s: %Ld [%s]\n%!"
- ov.ov_sd estimated_size (human_size estimated_size);
+ debug "estimate_target_size: %s: %Ld [...
2016 May 22
4
ocaml tools: Use a common debug function.
Add a Common_utils.debug function for printing messages
only when in verbose mode.
Rich.
2018 Aug 17
0
[PATCH v3 4/4] v2v: Add --print-estimate option to print copy size estimate.
...le the command line. *)
let cmdline, input, output = parse_cmdline () in
@@ -156,6 +158,17 @@ let rec main () =
(match conversion_mode with
| In_place -> ()
| Copying overlays ->
+ (* Print copy size estimate and stop. *)
+ if cmdline.print_estimate then (
+ let estimated_size =
+ sum (List.map
+ (fun { ov_overlay_file } ->
+ Measure_disk.measure ~format:"qcow2" ov_overlay_file)
+ overlays) in
+ printf "%Ld\n" estimated_size;
+ exit 0
+ );
+
message (f_"Assign...
2018 Mar 16
7
[PATCH v2 0/5] Add --print-target with machine-readable version.
This adds --print-target. In addition, v2 provides a machine-readable
version (in JSON format).
All of the record -> JSON boilerplate in this patch could be
eliminated if we moved the baseline to OCaml 4.02.
Rich.
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
2016 Dec 01
2
[PATCH] v2v: Rename RHEV to RHV throughout.
...* use floating point numbers then RHV will fail to parse them.
* In case the size is just below a gigabyte boundary, round up.
*)
let bytes_to_gb b =
@@ -425,15 +425,15 @@ and add_disks targets guestcaps output_alloc sd_uuid image_uuids vol_uuids ovf =
| None, Some estimated_size -> Some (bytes_to_gb estimated_size), true
| None, None -> None, false in
- let format_for_rhev =
+ let format_for_rhv =
match t.target_format with
| "raw" -> "RAW"
| "qcow2" -> "COW"
| _ -&...
2016 Dec 07
0
[PATCH v2] v2v: Rename RHEV to RHV throughout.
...* use floating point numbers then RHV will fail to parse them.
* In case the size is just below a gigabyte boundary, round up.
*)
let bytes_to_gb b =
@@ -425,15 +425,15 @@ and add_disks targets guestcaps output_alloc sd_uuid image_uuids vol_uuids ovf =
| None, Some estimated_size -> Some (bytes_to_gb estimated_size), true
| None, None -> None, false in
- let format_for_rhev =
+ let format_for_rhv =
match t.target_format with
| "raw" -> "RAW"
| "qcow2" -> "COW"
| _ -&...
2016 Dec 07
2
[PATCH v2] v2v: Rename RHEV to RHV throughout.
v2:
- Fix virt-p2v messages too.
Rich.
2018 Aug 17
8
[PATCH v3 4/4] v2v: Add --print-estimate option to print copy size
I rethought this again, as I think that it's a dangerous assumption to
bake qemu-img measure output into our API.
This patch series runs qemu-img measure behind the scenes, but then
parses the output and sums it to a single number which we print.
Doing that required a bit of reworking, moving the Jansson [JSON
parser] bindings from virt-builder into the common directory and
a couple of other
2015 May 15
0
[PATCH 3/4] ocaml tools: Use global variables to store trace (-x) and verbose (-v) flags.
.... 1024. /. 1024. *. 10. /. time
in
@@ -412,7 +412,7 @@ let rec main () =
* for developer information only - so we can increase the
* accuracy of the estimate.
*)
- if verbose then (
+ if verbose () then (
match t.target_estimated_size, t.target_actual_size with
| None, None | None, Some _ | Some _, None | Some _, Some 0L -> ()
| Some estimate, Some actual ->
@@ -453,7 +453,7 @@ let rec main () =
if debug_gc then
Gc.compact ()
-and inspect_source ~verbose g root_choice =
+and inspect_sour...
2015 May 15
5
[PATCH 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
.. and a lot of refactoring.
https://bugzilla.redhat.com/show_bug.cgi?id=1167623
Rich.
2015 May 15
6
[PATCH v2 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
https://bugzilla.redhat.com/show_bug.cgi?id=1167623