search for: v2vqemunullcotst

Displaying 4 results from an estimated 4 matches for "v2vqemunullcotst".

2018 May 21
1
[PATCH] v2v: -o null: support older qemu-img (RHBZ#1580309)
...t_null.ml index b93d53dc5..5a5473c0d 100644 --- a/v2v/output_null.ml +++ b/v2v/output_null.ml @@ -42,7 +42,37 @@ open Utils * size instead. *) +let qemu_supports_null_co_device () = + (* We actually attempt to convert a raw file to the null-co device. *) + let tmp = Filename.temp_file "v2vqemunullcotst" ".img" in + Unix.truncate tmp 1024; + + let json = [ + "file.driver", JSON.String "null-co"; + "file.size", JSON.String "1E"; + ] in + + let cmd = + sprintf "qemu-img convert -n -f raw -O raw %s json:%s >/dev/null%s"...
2020 Apr 06
0
[v2v PATCH 2/2] Consolidate handling of temporary files/dirs
...ml b/v2v/output_null.ml index 3528da50..493c9f0e 100644 --- a/v2v/output_null.ml +++ b/v2v/output_null.ml @@ -50,7 +50,7 @@ let can_use_qemu_null_co_device () = (* We actually attempt to convert a raw file to the null-co device * using a JSON URL. *) - let tmp = Filename.temp_file "v2vqemunullcotst" ".img" in + let tmp = Filename.temp_file ~temp_dir:tmpdir "v2vqemunullcotst" ".img" in Unix.truncate tmp 1024; let json = [ @@ -65,20 +65,10 @@ let can_use_qemu_null_co_device () = (if verbose () then "" else " 2>&1&quo...
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
2020 Apr 02
6
[PATCH virt-v2v] v2v: Allow temporary directory to be set on a global basis.
...b/v2v/output_null.ml index 3528da50a..5ce30d557 100644 --- a/v2v/output_null.ml +++ b/v2v/output_null.ml @@ -50,7 +50,7 @@ let can_use_qemu_null_co_device () = (* We actually attempt to convert a raw file to the null-co device * using a JSON URL. *) - let tmp = Filename.temp_file "v2vqemunullcotst" ".img" in + let tmp = Filename.temp_file ~temp_dir:tmpdir "v2vqemunullcotst" ".img" in Unix.truncate tmp 1024; let json = [ @@ -75,8 +75,7 @@ class output_null = * the null-co device w/ a JSON URL. *) let tmpdir = - let base_dir = (open_gue...