mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
4804a4db33
https://bugzilla.redhat.com/show_bug.cgi?id=1566416 Commit id 'fe2af45b' added output for logical_block_size and num_blocks for both removeable and fixed storage, but did not update the nodedev capability causing virt-xml-validate to fail. It's listed as optional only because it only prints if the sizes are > 0. For a CDROM drive the values won't be formatted. Update the nodedevxml2xmltest in order to output the values for storage based on the logic from udevProcessRemoveableMedia and udevProcessSD with respect to the logical_blocksize and num_blocks calculations. Signed-off-by: John Ferlan <jferlan@redhat.com> ACKed-by Michal Privoznik <mprivozn@redhat.com>
15 lines
451 B
XML
15 lines
451 B
XML
<device>
|
|
<name>storage_serial_SATA_HTS721010G9SA00_MPCZ12Y0GNGWSE</name>
|
|
<parent>pci_8086_27c5_scsi_host_scsi_device_lun0</parent>
|
|
<capability type='storage'>
|
|
<block>/dev/sda</block>
|
|
<bus>scsi</bus>
|
|
<drive_type>disk</drive_type>
|
|
<model>HTS721010G9SA00</model>
|
|
<vendor>ATA</vendor>
|
|
<size>100030242816</size>
|
|
<logical_block_size>512</logical_block_size>
|
|
<num_blocks>195371568</num_blocks>
|
|
</capability>
|
|
</device>
|