search for: 3dbb4da9

Displaying 2 results from an estimated 2 matches for "3dbb4da9".

2020 Apr 06
0
[v2v PATCH 2/2] Consolidate handling of temporary files/dirs
...ame.open_temp_file ~temp_dir:tmpdir "ova.file." "" in output chan head 0 headlen; close_out chan; let ret = detect_file_type tmpfile in - Sys.remove tmpfile; ret (* Find files in [dir] ending with [ext]. *) diff --git a/v2v/utils.ml b/v2v/utils.ml index ccbb9d68..3dbb4da9 100644 --- a/v2v/utils.ml +++ b/v2v/utils.ml @@ -22,8 +22,30 @@ open Printf open Std_utils open Tools_utils +open Unix_utils open Common_gettext.Gettext +let lazy_tmpdir = + lazy ( + let tmpdir = Mkdtemp.temp_dir "virt-v2v." in + rmdir_on_exit tmpdir; + tmpdir + ) + +let...
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