[Devel] [PATCH hci-8.1 v3 7/9] drivers/md/dm-qcow2: add the error_policy table argument

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 17 13:56:44 MSK 2026


> QEMU disks have the werror/rerror policies: report the error to the
> guest, or pause the VM and retry the request on resume, either for
> ENOSPC only (enospc) or for any error (stop). A vhost-blk disk
> completes requests to the guest from the kernel, so the request has
> to be held in dm-qcow2 for QEMU to have a chance to pause the VM.
> 
> Accept an optional first table argument
> 
>   error_policy=<read>,<write>
> 
> where each policy is report, enospc or stop. Requests failed under
> the enospc or stop policy are held, reported and resubmitted like
> ENOSPC writes are now. All other table arguments are numeric fds, so
> the option cannot be confused with an image.
> 
> [ ... ]
> the table has to pass the policy back as the first argument.
> 
> 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.

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




More information about the Devel mailing list