Skip to content
  • Mike Day's avatar
    qemu-img: sort block formats in help message · 1a443c1b
    Mike Day authored
    
    
    The help message for qemu-img lists the supported block formats, of
    which there are 27 as of version 2.0.50. The formats are printed in
    the order of their driver's position in a linked list, which appears
    random. This patch prints the formats in sorted order, making it
    easier to read and to find a specific format in the list.
    
    [Added suggestions from Fam Zheng <famz@redhat.com> to declare variables
    at the top of the scope in help() and to omit explicit cast for void*
    opaque.
    --Stefan]
    
    Signed-off-by: default avatarMike Day <ncmike@ncultra.org>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    1a443c1b