• M
    conf: Report sensible error for invalid disk name · 03cd6e4a
    Martin Kletzander 提交于
    The error "... but the cause is unknown" appeared for XMLs similar to
    this:
    
     <disk type='file' device='cdrom'>
       <driver name='qemu' type='raw'/>
       <source file='/dev/zero'/>
       <target dev='sr0'/>
     </disk>
    
    Notice unsupported disk type (for the driver), but also no address
    specified. The first part is not a problem and we should not abort
    immediately because of that, but the combination with the address
    unknown was causing an unspecified error.
    
    While fixing this, I added an error to one place where this return
    value was not managed properly.
    03cd6e4a
qemu_command.c 307.3 KB