On 22.04.20 17:21, Kevin Wolf wrote: > This adds a new BdrvRequestFlags parameter to the .bdrv_co_truncate() > driver callbacks, and a supported_truncate_flags field in > BlockDriverState that allows drivers to advertise support for request > flags in the context of truncate. > > For now, we always pass 0 and no drivers declare support for any flag. > > Signed-off-by: Kevin Wolf <[email protected]> > Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]> > Reviewed-by: Alberto Garcia <[email protected]> > --- > include/block/block_int.h | 10 +++++++++- > block/crypto.c | 3 ++- > block/file-posix.c | 2 +- > block/file-win32.c | 2 +- > block/gluster.c | 1 + > block/io.c | 8 +++++++- > block/iscsi.c | 2 +- > block/nfs.c | 3 ++- > block/qcow2.c | 2 +- > block/qed.c | 1 + > block/raw-format.c | 2 +- > block/rbd.c | 1 + > block/sheepdog.c | 4 ++-- > block/ssh.c | 2 +- > tests/test-block-iothread.c | 3 ++- > 15 files changed, 33 insertions(+), 13 deletions(-)
(I know I haven’t complained before, so *shrug*, but I wonder now whether it actually makes sense to have the same BdrvRequestFlags for all request types. Or why we have the same flags type for read, write, and zero-write already.) Reviewed-by: Max Reitz <[email protected]>
signature.asc
Description: OpenPGP digital signature
