[Devel] [PATCH hci-8.2 v3 6/7] dm-qcow2: add the report_enospc table argument

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 11:54:41 MSK 2026


> A request failing with ENOSPC is delayed in dm-qcow2 and resubmitted
> every 20 seconds, and the error is reported with a dm event. A
> vhost-blk disk is controlled by QEMU, which cannot wait for dm events
> or send dm messages without CAP_SYS_ADMIN. So for a VM the request
> just hangs until space is freed, and the VM is never paused.
> 
> vhost-blk is to hold a request failed with ENOSPC itself and let QEMU
> pause the VM and resubmit it on resume, as QEMU does for its own disks
> with werror=enospc. That needs the error to reach vhost-blk.
> 
> With the optional first table argument report_enospc, such a request
> is completed with BLK_STS_NOSPC at once, and no dm event is raised.
> Without it nothing changes, which containers rely on.
> 
> A flag set by a message would be lost on every table reload, as the
> [ ... ]
> argument as a wrong fd.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-152175
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261201085009.1884844-1-alexander.ivanov@virtuozzo.com?part=6




More information about the Devel mailing list