Displaying 14 results from an estimated 14 matches for "fs_total_size".
2016 May 22
0
[PATCH 2/2] ocaml tools: Use a common debug function.
...error (f_"qemu-img command failed, see earlier errors");
@@ -453,16 +452,14 @@ and estimate_target_size mpstats targets =
sum (
List.map (fun { mp_statvfs = s } -> s.G.blocks *^ s.G.bsize) mpstats
) in
- if verbose () then
- printf "estimate_target_size: fs_total_size = %Ld [%s]\n%!"
- fs_total_size (human_size fs_total_size);
+ debug "estimate_target_size: fs_total_size = %Ld [%s]"
+ fs_total_size (human_size fs_total_size);
(* (2) *)
let source_total_size =
sum (List.map (fun t -> t.target_overlay.ov_virtual_size) ta...
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.
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
2018 Aug 23
0
[PATCH v4] v2v: Add --print-estimate option to print copy size estimate.
..._buses =
Target_bus_assignment.target_bus_assignment source guestcaps in
@@ -487,8 +505,6 @@ and do_fstrim g inspect =
* sdb final estimate size = 3 - (3*1.35/4) = 1.9875 GB
*)
and estimate_target_size mpstats overlays =
- let sum = List.fold_left (+^) 0L in
-
(* (1) *)
let fs_total_size =
sum (
diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod
index e6f08d1e6..a92ae9f88 100644
--- a/v2v/virt-v2v.pod
+++ b/v2v/virt-v2v.pod
@@ -794,6 +794,20 @@ C<root>.
You will get an error if virt-v2v is unable to mount/write to the
Export Storage Domain.
+=item B<--print-estimate...
2018 Aug 17
0
[PATCH v3 4/4] v2v: Add --print-estimate option to print copy size estimate.
..._buses =
Target_bus_assignment.target_bus_assignment source guestcaps in
@@ -487,8 +500,6 @@ and do_fstrim g inspect =
* sdb final estimate size = 3 - (3*1.35/4) = 1.9875 GB
*)
and estimate_target_size mpstats overlays =
- let sum = List.fold_left (+^) 0L in
-
(* (1) *)
let fs_total_size =
sum (
diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod
index 303fe425c..af3f4d6b1 100644
--- a/v2v/virt-v2v.pod
+++ b/v2v/virt-v2v.pod
@@ -794,6 +794,17 @@ C<root>.
You will get an error if virt-v2v is unable to mount/write to the
Export Storage Domain.
+=item B<--print-estimate...
2018 Aug 24
0
[PATCH v6] v2v: Add --print-estimate option to print copy size estimate.
..._buses =
Target_bus_assignment.target_bus_assignment source guestcaps in
@@ -487,8 +495,6 @@ and do_fstrim g inspect =
* sdb final estimate size = 3 - (3*1.35/4) = 1.9875 GB
*)
and estimate_target_size mpstats overlays =
- let sum = List.fold_left (+^) 0L in
-
(* (1) *)
let fs_total_size =
sum (
@@ -617,6 +623,25 @@ and get_target_formats cmdline output overlays =
format
) overlays
+and print_estimate overlays =
+ let estimates =
+ List.map (
+ fun { ov_overlay_file } ->
+ Measure_disk.measure ~format:"qcow2" ov_overlay_file
+ ) over...
2018 Aug 23
0
[PATCH v5] v2v: Add --print-estimate option to print copy size estimate.
..._buses =
Target_bus_assignment.target_bus_assignment source guestcaps in
@@ -487,8 +495,6 @@ and do_fstrim g inspect =
* sdb final estimate size = 3 - (3*1.35/4) = 1.9875 GB
*)
and estimate_target_size mpstats overlays =
- let sum = List.fold_left (+^) 0L in
-
(* (1) *)
let fs_total_size =
sum (
@@ -617,6 +623,25 @@ and get_target_formats cmdline output overlays =
format
) overlays
+and print_estimate overlays =
+ let estimates =
+ List.map (
+ fun { ov_overlay_file } ->
+ Measure_disk.measure ~format:"qcow2" ov_overlay_file
+ ) over...
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.
2018 Aug 24
2
[PATCH v6] v2v: Add --print-estimate option to print copy size estimate.
v6:
- Make the text output a bit nicer.
- Changes as suggested to Measure_disk module temp file & json parsing.
- Use jq to test JSON output.
- Retest.
2018 Aug 23
2
[PATCH v5] v2v: Add --print-estimate option to print copy size estimate.
v5:
- Normal output modified approx as suggested in previous email.
- Machine readable output uses JSON.
2015 May 15
0
[PATCH 3/4] ocaml tools: Use global variables to store trace (-x) and verbose (-v) flags.
...m = List.fold_left (+^) 0L in
(* (1) *)
@@ -740,14 +740,14 @@ and estimate_target_size ~verbose mpstats targets =
sum (
List.map (fun { mp_statvfs = s } -> s.G.blocks *^ s.G.bsize) mpstats
) in
- if verbose then
+ if verbose () then
printf "estimate_target_size: fs_total_size = %Ld [%s]\n%!"
fs_total_size (human_size fs_total_size);
(* (2) *)
let source_total_size =
sum (List.map (fun t -> t.target_overlay.ov_virtual_size) targets) in
- if verbose then
+ if verbose () then
printf "estimate_target_size: source_total_size = %Ld [%s]...
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
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