• J
    schema: Add missing block data for nodedev · 4804a4db
    John Ferlan 提交于
    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: NJohn Ferlan <jferlan@redhat.com>
    ACKed-by Michal Privoznik <mprivozn@redhat.com>
    4804a4db
nodedevxml2xmltest.c 3.7 KB