[Pkg-libvirt-commits] [libguestfs] 03/17: v2v: Put overlay on LIBGUESTFS_CACHEDIR, not /tmp (RHBZ#1146017).

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:48:30 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.55-1
in repository libguestfs.

commit 9a9d10d2a0388f84ace3454c56071c544a3b923f
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Sep 25 14:30:37 2014 +0100

    v2v: Put overlay on LIBGUESTFS_CACHEDIR, not /tmp (RHBZ#1146017).
    
    Since the overlay could grow very large (because of copy-on-read) it
    is not suitable for /tmp.
---
 v2v/v2v.ml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index df6a78c..55d0f2f 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -104,7 +104,8 @@ let rec main () =
   let overlays =
     List.map (
       fun ({ s_qemu_uri = qemu_uri; s_format = format } as source) ->
-        let overlay_file = Filename.temp_file "v2vovl" ".qcow2" in
+        let temp_dir = (new Guestfs.guestfs ())#get_cachedir () in
+        let overlay_file = Filename.temp_file ~temp_dir "v2vovl" ".qcow2" in
         unlink_on_exit overlay_file;
 
         let options =

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list