[Pkg-libvirt-commits] [libguestfs] 137/266: v2v: Don't attempt to make block device paths absolute.

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

commit 2fc9fdda98dac8f665f204c5c9baf13541f49014
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Aug 20 12:14:26 2014 +0100

    v2v: Don't attempt to make block device paths absolute.
    
    <source dev=...> in the libvirt XML should always refer to a block
    device, eg. /dev/sda1.  Don't attempt to make these paths absolute
    (they should already be absolute paths, and if they are not it's wrong
    to try to make them).
---
 v2v/source_libvirt.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/source_libvirt.ml b/v2v/source_libvirt.ml
index c50fa04..50e4bfc 100644
--- a/v2v/source_libvirt.ml
+++ b/v2v/source_libvirt.ml
@@ -144,7 +144,7 @@ let create_xml ?dir xml =
       | "block" ->
         let path = xpath_to_string "source/@dev" "" in
         if path <> "" then
-          add_disk (absolute_path_of_disk path) format target_dev
+          add_disk path format target_dev
       | "file" ->
         let path = xpath_to_string "source/@file" "" in
         if path <> "" then

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