[Pkg-libvirt-commits] [libguestfs] 27/179: v2v: Add missing disk <rasd:Caption>.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 31 19:08:01 UTC 2014


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

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 7c97b01f2754ffb76f94b68497eb5829ffa92390
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Oct 8 12:37:51 2014 +0100

    v2v: Add missing disk <rasd:Caption>.
    
    Possible fix for RHBZ#1150475.
---
 v2v/lib_ovf.ml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/v2v/lib_ovf.ml b/v2v/lib_ovf.ml
index fcba087..afbfe7b 100644
--- a/v2v/lib_ovf.ml
+++ b/v2v/lib_ovf.ml
@@ -393,7 +393,12 @@ and add_disks targets guestcaps output_alloc sd_uuid image_uuid vol_uuids ovf =
 
       (* Add disk to VirtualHardware. *)
       let item =
+        (* This text MUST begin with the string "Drive " or the file
+         * will not parse.
+         *)
+        let caption = sprintf "Drive %d" (i+1) in
         e "Item" [] [
+          e "rasd:Caption" [] [PCData caption];
           e "rasd:InstanceId" [] [PCData vol_uuid];
           e "rasd:ResourceType" [] [PCData "17"];
           e "rasd:HostResource" [] [PCData fileref];

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