Re: [PATCH] block/blkio: Tolerate device size changes

2022-11-02 Thread Kevin Wolf
Am 29.10.2022 um 14:20 hat Alberto Faria geschrieben: > 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. > > A

Re: [PATCH] block/blkio: Tolerate device size changes

2022-10-31 Thread Stefan Hajnoczi
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 result

[PATCH] block/blkio: Tolerate device size changes

2022-10-29 Thread Alberto Faria
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