]> Git Repo - qemu.git/commit - block/iscsi.c
block: Add errp to BD.bdrv_truncate()
authorMax Reitz <[email protected]>
Tue, 28 Mar 2017 20:51:28 +0000 (22:51 +0200)
committerMax Reitz <[email protected]>
Fri, 28 Apr 2017 14:02:03 +0000 (16:02 +0200)
commit4bff28b81a0ddb48a09d279e99ab847e8a292506
tree5d792e847143ace016de670db3106a3d9466c10a
parented3d2ec98a33fbdeabc471b11ff807075f07e996
block: Add errp to BD.bdrv_truncate()

Add an Error parameter to the block drivers' bdrv_truncate() interface.
If a block driver does not set this in case of an error, the generic
bdrv_truncate() implementation will do so.

Where it is obvious, this patch also makes some block drivers set this
value.

Signed-off-by: Max Reitz <[email protected]>
Message-id: 20170328205129[email protected]
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Max Reitz <[email protected]>
14 files changed:
block.c
block/blkdebug.c
block/crypto.c
block/file-posix.c
block/file-win32.c
block/gluster.c
block/iscsi.c
block/nfs.c
block/qcow2.c
block/qed.c
block/raw-format.c
block/rbd.c
block/sheepdog.c
include/block/block_int.h
This page took 0.02894 seconds and 4 git commands to generate.