aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2023-09-18 20:00:42 +0200
committerDenis V. Lunev <den@openvz.org>2023-09-21 08:45:43 +0200
commit93361b7e33ab7046e7c4c2064503ff199ae1cef9 (patch)
treeb439e5f000bff2f78243f85dc0ae9813b2f18927 /scripts/qapi/source.py
parentparallels: fix memory leak in parallels_open() (diff)
downloadqemu-93361b7e33ab7046e7c4c2064503ff199ae1cef9.tar.xz
qemu-93361b7e33ab7046e7c4c2064503ff199ae1cef9.zip
parallels: invent parallels_opts_prealloc() helper to parse prealloc opts
This patch creates above mentioned helper and moves its usage to the beginning of parallels_open(). This simplifies parallels_open() a bit. The patch also ensures that we store prealloc_size on block driver state always in sectors. This makes code cleaner and avoids wrong opinion at the assignment that the value is in bytes. Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions