summary refs log tree commit diff stats
path: root/tests/test-string-input-visitor.c
diff options
context:
space:
mode:
authorEdgar Kaziahmedov <edos@virtuozzo.mipt.ru>2017-03-20 12:27:02 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2017-03-21 10:02:36 +0000
commitff5bbe56c6f9a74c2d77389a21d5d2368458c939 (patch)
tree6debcfaa72a5809fdec2fe4ed9d3739349ed9703 /tests/test-string-input-visitor.c
parent940a8ce075e3408742a4edcabfd6c2a15e2539eb (diff)
downloadfocaccia-qemu-ff5bbe56c6f9a74c2d77389a21d5d2368458c939.tar.gz
focaccia-qemu-ff5bbe56c6f9a74c2d77389a21d5d2368458c939.zip
parallels: fix default options parsing
parallels block driver is completely broken since commit
    commit 75cdcd1553e74b5edc58aed23e3b2da8dabb1876
    Author: Markus Armbruster <armbru@redhat.com>
    Date:   Tue Feb 21 21:14:08 2017 +0100
    option: Fix checking of sizes for overflow and trailing crap
Right now even simple
    qemu-io -c "read 512 64k" 1.hds
ends up with
    Unexpected error in parse_option_size() at util/qemu-option.c:188:
    Parameter 'prealloc-size' expects a non-negative number below 2^64
    Aborted (core dumped)
The cure is simple - we should use 'M' as a suffix in default option value
instead of 'MiB'.

Signed-off-by: Edgar Kaziahmedov <edos@virtuozzo.mipt.ru>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Message-id: 1490002022-22653-1-git-send-email-den@openvz.org
CC: Markus Armbruster <armbru@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/test-string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions