mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-26 15:55:24 +00:00
Add a sparse flag to Dragonball block device configuration and use it to expose virtio-blk discard support to the guest. Handle discard requests by validating the requested range and punching holes in sparse local file backends, returning an I/O error instead of panicking on discard failures. Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>