Message ID | 364789514.5335967.1417506465064.JavaMail.zimbra@redhat.com |
---|---|
State | New |
Headers | show |
----- Original Message ----- > From: "Francesco Romani" <fromani@redhat.com> > To: "Eric Blake" <eblake@redhat.com> > Cc: kwolf@redhat.com, lcapitulino@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, mdroth@linux.vnet.ibm.com > Sent: Tuesday, December 2, 2014 8:47:45 AM > Subject: Re: [Qemu-devel] [PATCHv3] block: add event when disk usage exceeds threshold > > Thanks for the quick review! > > Missing the change to the 'query-block' and 'query-named-block-nodes' > > examples to show the new always-present output field. > Sorry, I missed the *examples* keyword. Will fix.
diff --git a/block/qapi.c b/block/qapi.c index a87a34a..c85abb0 100644 --- a/block/qapi.c +++ b/block/qapi.c @@ -24,6 +24,7 @@ #include "block/qapi.h" #include "block/block_int.h" +#include "block/usage-threshold.h" #include "qmp-commands.h" #include "qapi-visit.h" #include "qapi/qmp-output-visitor.h" @@ -82,6 +83,8 @@ BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs) info->iops_size = cfg.op_size; } + info->write_threshold = bdrv_usage_threshold_get(bs); + return info; }