On Mon, Mar 13, 2017 at 10:39:46PM +0100, Max Reitz wrote: > Add a PreallocMode parameter to the bdrv_truncate() function implemented > by each block driver. Currently, we always pass PREALLOC_MODE_OFF and no > driver accepts anything else. > > Signed-off-by: Max Reitz <mre...@redhat.com> > --- > include/block/block_int.h | 3 ++- > block.c | 2 +- > block/blkdebug.c | 9 ++++++++- > block/crypto.c | 8 +++++++- > block/file-posix.c | 9 ++++++++- > block/file-win32.c | 9 ++++++++- > block/gluster.c | 6 +++++- > block/iscsi.c | 7 ++++++- > block/nfs.c | 8 +++++++- > block/qcow2.c | 9 ++++++++- > block/qed.c | 9 ++++++++- > block/raw-format.c | 9 ++++++++- > block/rbd.c | 7 ++++++- > block/sheepdog.c | 11 +++++++++-- > 14 files changed, 91 insertions(+), 15 deletions(-)
This patch reminds me that some block drivers aren't using Error **errp yet. I have added a BiteSizedTasks entry so that this can be fixed someday. Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature