aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-11-09 18:16:50 +0800
committerKevin Wolf <kwolf@redhat.com>2015-11-12 16:22:42 +0100
commit8b45f6878d291646cadc4786ae807e6a42c188b4 (patch)
treeecf6303aa7a9160cc519dde33ba387b7ddad86d4 /include
parent4bb17ab51a78c6daaaa9d6c86d1c890d24c091c4 (diff)
block: Add ioctl parameter fields to BlockRequest
The two fields that will be used by ioctl handling code later are added as union, because it's used exclusively by ioctl code which dosn't need the four fields in the other struct of the union. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 1447064214-29930-6-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 610db923d5..c8b40b739f 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -335,10 +335,18 @@ void bdrv_aio_cancel_async(BlockAIOCB *acb);
typedef struct BlockRequest {
/* Fields to be filled by multiwrite caller */
- int64_t sector;
- int nb_sectors;
- int flags;
- QEMUIOVector *qiov;
+ union {
+ struct {
+ int64_t sector;
+ int nb_sectors;
+ int flags;
+ QEMUIOVector *qiov;
+ };
+ struct {
+ int req;
+ void *buf;
+ };
+ };
BlockCompletionFunc *cb;
void *opaque;