diff options
| author | Alberto Faria | 2022-07-05 18:15:19 +0200 |
|---|---|---|
| committer | Hanna Reitz | 2022-07-12 12:14:56 +0200 |
| commit | 2c9715fa28042ce84215dfd6b3bf35af90624e14 (patch) | |
| tree | aecfcc885ec79698e405ac2426d5283761ef4598 /include | |
| parent | block: Change blk_pwrite_compressed() param order (diff) | |
| download | qemu-2c9715fa28042ce84215dfd6b3bf35af90624e14.tar.gz qemu-2c9715fa28042ce84215dfd6b3bf35af90624e14.tar.xz qemu-2c9715fa28042ce84215dfd6b3bf35af90624e14.zip | |
block: Add blk_co_pwrite_compressed()
Also convert blk_pwrite_compressed() into a generated_co_wrapper.
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-12-afaria@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/block-backend-io.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/sysemu/block-backend-io.h b/include/sysemu/block-backend-io.h index 695b793a72..8500a63102 100644 --- a/include/sysemu/block-backend-io.h +++ b/include/sysemu/block-backend-io.h @@ -167,8 +167,11 @@ int blk_flush(BlockBackend *blk); int blk_ioctl(BlockBackend *blk, unsigned long int req, void *buf); -int blk_pwrite_compressed(BlockBackend *blk, int64_t offset, int64_t bytes, - const void *buf); +int generated_co_wrapper blk_pwrite_compressed(BlockBackend *blk, + int64_t offset, int64_t bytes, + const void *buf); +int coroutine_fn blk_co_pwrite_compressed(BlockBackend *blk, int64_t offset, + int64_t bytes, const void *buf); int blk_pdiscard(BlockBackend *blk, int64_t offset, int64_t bytes); int blk_pwrite_zeroes(BlockBackend *blk, int64_t offset, int64_t bytes, BdrvRequestFlags flags); |
