[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] block/blkio: Tolerate device size changes
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH] block/blkio: Tolerate device size changes |
Date: |
Mon, 31 Oct 2022 14:33:49 -0400 |
On Sat, Oct 29, 2022 at 01:20:31PM +0100, Alberto Faria wrote:
> Some libblkio drivers may be able to work with regular files (e.g.,
> io_uring) or otherwise resizable devices. Conservatively set
> BlockDriver::has_variable_length to true to ensure bdrv_nb_sectors()
> always gives up-to-date results.
>
> Also implement BlockDriver::bdrv_co_truncate for the case where no
> preallocation is needed and the device already has a size compatible
> with what was requested.
>
> Signed-off-by: Alberto Faria <afaria@redhat.com>
> ---
>
> This is based on Stefan's block tree:
> https://gitlab.com/stefanha/qemu/-/commits/block
>
> block/blkio.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
Thanks, applied to my block tree:
https://gitlab.com/stefanha/qemu/commits/block
Stefan
signature.asc
Description: PGP signature