Displaying 10 results from an estimated 10 matches for "v2vmeasur".
Did you mean:
v2vmeasure
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.
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.
2020 Apr 06
0
[v2v PATCH 2/2] Consolidate handling of temporary files/dirs
...open Common_gettext.Gettext
+open Utils
+
(* Run qemu-img measure on a disk. *)
let measure ?format filename =
@@ -38,8 +40,7 @@ let measure ?format filename =
List.push_back cmd "--output=json";
List.push_back cmd filename;
- let json, chan = Filename.open_temp_file "v2vmeasure" ".json" in
- unlink_on_exit json;
+ let json, chan = Filename.open_temp_file ~temp_dir:tmpdir "v2vmeasure" ".json" in
let fd = Unix.descr_of_out_channel chan in
if run_command ~stdout_fd:fd !cmd <> 0 then
error (f_"qemu-img measure failed...
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
2018 Aug 23
0
[PATCH v4] v2v: Add --print-estimate option to print copy size estimate.
...cow2 here, see this thread:
+ * https://www.redhat.com/archives/libguestfs/2018-August/thread.html#00142
+ *)
+ List.push_back_list cmd ["-O"; "qcow2"];
+ List.push_back cmd "--output=json";
+ List.push_back cmd filename;
+
+ let json = Filename.temp_file "v2vmeasure" ".json" in
+ unlink_on_exit json;
+
+ let fd = Unix.openfile json [O_WRONLY; O_CREAT; O_TRUNC] 0o600 in
+ if run_command ~stdout_fd:fd !cmd <> 0 then
+ error (f_"qemu-img measure failed, see earlier errors");
+ (* Note that run_command closes fd. *)
+
+ let...
2018 Aug 17
0
[PATCH v3 4/4] v2v: Add --print-estimate option to print copy size estimate.
...cow2 here, see this thread:
+ * https://www.redhat.com/archives/libguestfs/2018-August/thread.html#00142
+ *)
+ List.push_back_list cmd ["-O"; "qcow2"];
+ List.push_back cmd "--output=json";
+ List.push_back cmd filename;
+
+ let json = Filename.temp_file "v2vmeasure" ".json" in
+ unlink_on_exit json;
+
+ let fd = Unix.openfile json [O_WRONLY; O_CREAT; O_TRUNC] 0o600 in
+ if run_command ~stdout_fd:fd !cmd <> 0 then
+ error (f_"qemu-img measure failed, see earlier errors");
+ (* Note that run_command closes fd. *)
+
+ let...
2018 Aug 24
0
[PATCH v6] v2v: Add --print-estimate option to print copy size estimate.
...see this thread:
+ * https://www.redhat.com/archives/libguestfs/2018-August/thread.html#00142
+ *)
+ List.push_back_list cmd ["-O"; "qcow2"];
+ List.push_back cmd "--output=json";
+ List.push_back cmd filename;
+
+ let json, chan = Filename.open_temp_file "v2vmeasure" ".json" in
+ unlink_on_exit json;
+ let fd = Unix.descr_of_out_channel chan in
+ if run_command ~stdout_fd:fd !cmd <> 0 then
+ error (f_"qemu-img measure failed, see earlier errors");
+ (* Note that run_command closes fd. *)
+
+ let json = json_parser_tree_p...
2018 Aug 23
0
[PATCH v5] v2v: Add --print-estimate option to print copy size estimate.
...cow2 here, see this thread:
+ * https://www.redhat.com/archives/libguestfs/2018-August/thread.html#00142
+ *)
+ List.push_back_list cmd ["-O"; "qcow2"];
+ List.push_back cmd "--output=json";
+ List.push_back cmd filename;
+
+ let json = Filename.temp_file "v2vmeasure" ".json" in
+ unlink_on_exit json;
+
+ let fd = Unix.openfile json [O_WRONLY; O_CREAT; O_TRUNC] 0o600 in
+ if run_command ~stdout_fd:fd !cmd <> 0 then
+ error (f_"qemu-img measure failed, see earlier errors");
+ (* Note that run_command closes fd. *)
+
+ let...
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 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