Denis V. Lunev 93361b7e33 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>
2023-09-21 08:45:43 +02:00
..
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2023-05-30 17:37:26 +02:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2023-09-11 09:11:22 -04:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2023-06-01 07:34:03 -04:00
2023-09-08 13:08:52 +03:00
2023-05-30 17:37:26 +02:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00