Check that the image exists in qemu_driver create instead of always succeeding #185

Open
koolkhel wants to merge 1 commits from koolkhel/vitastor:qemu-create-check into master

1 Commits

Author SHA1 Message Date
e323d0080e Check that the image exists in qemu_driver create instead of always succeeding
qemu-img create on a named image reported success without creating it,
so the next open failed with "image does not exist", and an existing
smaller image silently kept its size. QEMU can't create Vitastor images,
so open the image instead and fail if it doesn't exist or is smaller
than the requested size. qemu-img convert into an existing image that is
large enough keeps working without -n; inode addressing is unchanged.
2026-11-25 03:17:24 +03:00