ptgen: allow image generation for a specified disk size
authorMikhail Kshevetskiy <[email protected]>
Mon, 30 Dec 2024 00:42:08 +0000 (03:42 +0300)
committerDaniel Golle <[email protected]>
Tue, 23 Sep 2025 22:15:33 +0000 (23:15 +0100)
commit78d8084c737692c3e0924762f8bc1fa80268c4f4
tree6574fb70fbd6ad97250b412e1966197f7749fd06
parent3f2d14829150c5a735271fcfd27dea0e898f6fb0
ptgen: allow image generation for a specified disk size

Sometimes we know an exact size of the disk and want to create a proper
disk image. This patch allows such operation.

A special case of zero disk size is supported. In this case the disk
size will be automatically calculated on the base of provided partitions
list.

Signed-off-by: Mikhail Kshevetskiy <[email protected]>
src/ptgen.c