Re: Strange nodedev-dumpxml ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 09, 2011 at 01:39:33PM +0100, arnaud.champion@xxxxxxxxxx wrote:
> ?Hi,
> 
> I have maybe a strange thing on a nodedev-dumpxml virsh result :
> 
> virsh # nodedev-dumpxml block_sr0
> <device>
>   <name>block_sr0</name>
>   <parent>scsi_0_0_1_0</parent>
>   <capability type='storage'>
>     <block>/dev/sr0</block>
>     <bus>scsi</bus>
>     <drive_type>cdrom</drive_type>
>     <model>DVD RW DRU-190S</model>
>     <vendor>SONY</vendor>
>     <capability type='removable'>
>       <media_available>0</media_available>
>       <media_size>0</media_size>
>     </capability>
>   </capability>
> </device>
> 
> I think (note I'm not sure), the capabilty type removable should be in the device element, like this :
> 
> virsh # nodedev-dumpxml block_sr0
> <device>
>   <name>block_sr0</name>
>   <parent>scsi_0_0_1_0</parent>
>   <capability type='storage'>
>     <block>/dev/sr0</block>
>     <bus>scsi</bus>
>     <drive_type>cdrom</drive_type>
>     <model>DVD RW DRU-190S</model>
>     <vendor>SONY</vendor>
>   </capability>
>   <capability type='removable'>
>       <media_available>0</media_available>
>       <media_size>0</media_size>
>   </capability>
> 
> </device>

No, 'removable' is a sub-capability of 'storage', hence it is nested.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]