mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 22:42:13 -06:00
block: Make blk_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: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220705161527.1054072-6-afaria@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
40fb4861b2
commit
7d252ba5ca
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ static inline int coroutine_fn blk_co_pread(BlockBackend *blk, int64_t offset,
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int coroutine_fn blk_co_pwrite(BlockBackend *blk, int64_t offset,
|
static inline int coroutine_fn blk_co_pwrite(BlockBackend *blk, int64_t offset,
|
||||||
int64_t bytes, void *buf,
|
int64_t bytes, const void *buf,
|
||||||
BdrvRequestFlags flags)
|
BdrvRequestFlags flags)
|
||||||
{
|
{
|
||||||
QEMUIOVector qiov = QEMU_IOVEC_INIT_BUF(qiov, buf, bytes);
|
QEMUIOVector qiov = QEMU_IOVEC_INIT_BUF(qiov, buf, bytes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue