Looks good overall. I left some comments on individual patches.
Maybe one day qemu-img convert and the mirror blockjob can be unified.
The write zeroes logic is duplicated.
Stefan
signature.asc
Description: PGP signature
V1 was here: https://lists.gnu.org/archive/html/qemu-devel/2025-04/msg01654.html
In v2:
- Rearrange and split several patches
- Fewer changes to file-posix.c; instead,
- New bdrv_co_is_all_zeroes() in io.c, which works on both file-posix and NBD
- Clean up several corner cases spotted during r