[Devel] [PATCH hci-8.2 v2 7/7] dm-ploop: add the report_enospc table argument
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Dec 1 04:15:25 MSK 2026
> A request failing with ENOSPC is delayed in dm-ploop 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. That needs the error to reach
> vhost-blk.
>
> With the optional 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
> reload creates a new target. So it is a table argument, which
> userspace has to pass with every table it loads: on a snapshot, a
> grow, a merge, a replace and a migration.
>
> The table status shows it as the 'r' flag, which userspace reads back
> to pass report_enospc again when it reloads the table. The target
> version goes to 1.1.0, as an older kernel takes the argument for a
> delta fd and fails the table load with EINVAL.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-152175
> Feature: dm-ploop: ploop target 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/20261130162456.1822406-1-alexander.ivanov@virtuozzo.com?part=7
More information about the Devel
mailing list