• A
    block: iterate_format with account of whitelisting · 9ac404c5
    Andrey Shinkevich 提交于
    bdrv_iterate_format (which is currently only used for printing out the
    formats supported by the block layer) doesn't take format whitelisting
    into account.
    
    This creates a problem for tests: they enumerate supported formats to
    decide which tests to enable, but then discover that QEMU doesn't let
    them actually use some of those formats.
    
    To avoid that, exclude formats that are not whitelisted from
    enumeration, if whitelisting is in use.  Since we have separate
    whitelists for r/w and r/o, take this a parameter to
    bdrv_iterate_format, and print two lists of supported formats (r/w and
    r/o) in main qemu.
    Signed-off-by: NRoman Kagan <rkagan@virtuozzo.com>
    Signed-off-by: NAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    9ac404c5
block.h 28.8 KB