summary refs log tree commit diff stats
path: root/scripts/shaderinclude.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/shaderinclude.py
parentc74cd7bd328001c85cd6f74f63b52ae1263b4c22 (diff)
downloadfocaccia-qemu-93361b7e33ab7046e7c4c2064503ff199ae1cef9.tar.gz
focaccia-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/shaderinclude.py')
0 files changed, 0 insertions, 0 deletions