[PATCH 1/2] qemu: block: Pass discard requests through the copy-on-read block filter

Daniel P. Berrangé berrange at redhat.com
Wed Jul 28 09:32:54 UTC 2021


On Wed, Jul 28, 2021 at 09:51:38AM +0200, Peter Krempa wrote:
> We need to pass the 'trim' requests through the copy-on-read filter so
> if a user configures a discard policy on the disk the requests get
> through to the appropriate format layer in the blockdev tree.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1986509
> Reported-by: Richard W.M. Jones <rjones at redhat.com>
> Tested-by: Richard W.M. Jones <rjones at redhat.com>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  src/qemu/qemu_block.c                                       | 1 +
>  tests/qemuxml2argvdata/disk-copy_on_read.x86_64-latest.args | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list