[Libguestfs] [PATCH] v2v: Use Std_utils.qemu_input_filename instead of prefixing "file:" to filename (RHBZ#1580292).

Richard W.M. Jones rjones at redhat.com
Tue May 22 07:11:17 UTC 2018


This also allows us to use virt-v2v with the old version of qemu in
RHEL 7.

Fixes commit e29296cfa20dd691995832940a30fe2e6b98149a.

Thanks: Pino Toscano for suggesting the fix.
---
 v2v/v2v.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 54a2b3998..363699701 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -744,7 +744,7 @@ and copy_targets cmdline targets input output =
       let cmd =
         let filename =
           match t.target_file with
-          | TargetFile filename -> "file:" ^ filename
+          | TargetFile filename -> qemu_input_filename filename
           | TargetURI uri -> uri in
         [ Guestfs_config.qemu_img; "convert" ] @
         (if not (quiet ()) then [ "-p" ] else []) @
-- 
2.16.2




More information about the Libguestfs mailing list