diff options
author | 2023-09-18 20:00:42 +0200 | |
---|---|---|
committer | 2023-09-21 08:45:43 +0200 | |
commit | 93361b7e33ab7046e7c4c2064503ff199ae1cef9 (patch) | |
tree | b439e5f000bff2f78243f85dc0ae9813b2f18927 /scripts/qapi/source.py | |
parent | parallels: fix memory leak in parallels_open() (diff) | |
download | qemu-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