[Pkg-libvirt-commits] [libguestfs] 45/66: v2v: -o rhev: Use a random name when testing UID:GID mapping.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:47:45 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.54-1
in repository libguestfs.

commit 06b04e5676eff7af7d0d667eab2f84288cb28755
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Sep 23 15:28:28 2014 +0100

    v2v: -o rhev: Use a random name when testing UID:GID mapping.
    
    Using a fixed name is risky if there are multiple parallel virt-v2v
    processes running.
---
 v2v/output_rhev.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/output_rhev.ml b/v2v/output_rhev.ml
index bc33186..a8cffcb 100644
--- a/v2v/output_rhev.ml
+++ b/v2v/output_rhev.ml
@@ -173,7 +173,7 @@ object
 
     (* See if we can write files as UID:GID 36:36. *)
     let () =
-      let testfile = esd_mp // esd_uuid // "v2v-uid-test" in
+      let testfile = esd_mp // esd_uuid // string_random8 () in
       Kvmuid.make_file kvmuid_t testfile "";
       let stat = stat testfile in
       Kvmuid.unlink kvmuid_t testfile;

-- 
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