diff options
author | Alberto Faria <afaria@redhat.com> | 2022-06-09 16:27:39 +0100 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2022-07-12 12:14:56 +0200 |
commit | ca71a64ee52eb0954541137026288970cc8213f7 (patch) | |
tree | 138b4c7ee2f3e774a2df66101058e234e4605dc4 | |
parent | 757dda54b43867936012970a1b457f3d16e7398d (diff) | |
download | qemu-ca71a64ee52eb0954541137026288970cc8213f7.zip qemu-ca71a64ee52eb0954541137026288970cc8213f7.tar.gz qemu-ca71a64ee52eb0954541137026288970cc8213f7.tar.bz2 |
block: Make bdrv_co_pwrite() take a const buffer
It does not mutate the buffer.
Signed-off-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220609152744.3891847-6-afaria@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
-rw-r--r-- | include/block/block_int-io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/block_int-io.h b/include/block/block_int-io.h index ded29e7..5474293 100644 --- a/include/block/block_int-io.h +++ b/include/block/block_int-io.h @@ -65,7 +65,7 @@ static inline int coroutine_fn bdrv_co_pread(BdrvChild *child, } static inline int coroutine_fn bdrv_co_pwrite(BdrvChild *child, - int64_t offset, unsigned int bytes, void *buf, BdrvRequestFlags flags) + int64_t offset, unsigned int bytes, const void *buf, BdrvRequestFlags flags) { QEMUIOVector qiov = QEMU_IOVEC_INIT_BUF(qiov, buf, bytes); IO_CODE(); |