[Libvirt-cim] [PATCH] Don't drop disk type on redefine

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Nov 5 18:59:02 UTC 2008


Dan Smith wrote:
> # HG changeset patch
> # User Dan Smith <danms at us.ibm.com>
> # Date 1225902171 28800
> # Node ID 1d696e80fccc41c9b21b5f24b84deab82d1416cc
> # Parent  ece7c71cd2aab612dec19cc6247194cdf8b5b049
> Don't drop disk type on redefine
> 
> Right now, we track the status of disk/cdrom of a disk device, but don't
> use it in the XML define.  This patch uses the value instead of a static
> device='disk'.
> 

The disk_rasd_to_vdev() function in VSMS doesn't set the device value of 
the disk struct.  The guest fails to define due to a null device.

<disk type='file' device='(null)'>
   <source file='/tmp/default-kvm-dimage'/>
   <target dev='hda'/>
</disk>

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list