diff options
author | Alberto Garcia <berto@igalia.com> | 2015-06-08 18:17:46 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-06-12 14:00:00 +0100 |
commit | b8fe1694e506362706cde65d1bf55b23e62b150e (patch) | |
tree | 36a87b77462c1f4fef61c77f0664cab1a0ac6889 /block | |
parent | db6283385cb708b9d589e5b57e96eab4afd0269e (diff) | |
download | qemu-b8fe1694e506362706cde65d1bf55b23e62b150e.zip qemu-b8fe1694e506362706cde65d1bf55b23e62b150e.tar.gz qemu-b8fe1694e506362706cde65d1bf55b23e62b150e.tar.bz2 |
throttle: add the name of the ThrottleGroup to BlockDeviceInfo
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 172df91f09c69c6f0440a697bbd1b3f95b077ee4.1433779731.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/qapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/qapi.c b/block/qapi.c index a5ac312..a738148 100644 --- a/block/qapi.c +++ b/block/qapi.c @@ -93,6 +93,9 @@ BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs, Error **errp) info->has_iops_size = cfg.op_size; info->iops_size = cfg.op_size; + + info->has_group = true; + info->group = g_strdup(throttle_group_get_name(bs)); } info->write_threshold = bdrv_write_threshold_get(bs); |