Re: [PATCH RFC] qapi: Allow getting flat output from 'query-named-block-nodes'

2019-12-19 Thread Peter Krempa
On Tue, Dec 17, 2019 at 16:11:37 +0100, Markus Armbruster wrote: > Eric Blake writes: > > > On 12/17/19 1:36 AM, Markus Armbruster wrote: > > > >> Un-snipping the QAPI schema change: > > > > Sorry about that... > > > >> > diff --git a/qapi/block-core.json b/qapi/block-core.json > index

Re: [PATCH RFC] qapi: Allow getting flat output from 'query-named-block-nodes'

2019-12-17 Thread Markus Armbruster
Eric Blake writes: > On 12/17/19 1:36 AM, Markus Armbruster wrote: > >> Un-snipping the QAPI schema change: > > Sorry about that... > >> diff --git a/qapi/block-core.json b/qapi/block-core.json index 0cf68fea14..bd651106bd 100644 --- a/qapi/block-core.json +++ b/qapi/block-cor

Re: [PATCH RFC] qapi: Allow getting flat output from 'query-named-block-nodes'

2019-12-17 Thread Eric Blake
On 12/17/19 1:36 AM, Markus Armbruster wrote: Un-snipping the QAPI schema change: Sorry about that... diff --git a/qapi/block-core.json b/qapi/block-core.json index 0cf68fea14..bd651106bd 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1752,6 +1752,8 @@ # # Get the nam

Re: [PATCH RFC] qapi: Allow getting flat output from 'query-named-block-nodes'

2019-12-16 Thread Markus Armbruster
Eric Blake writes: > On 12/13/19 8:11 AM, Peter Krempa wrote: >> When a management application manages node names there's no reason to >> recurse into backing images in the output of query-named-block-nodes. >> >> Add a parameter to the command which will return just the top level >> structs. > >

Re: [PATCH RFC] qapi: Allow getting flat output from 'query-named-block-nodes'

2019-12-13 Thread Eric Blake
On 12/13/19 8:11 AM, Peter Krempa wrote: When a management application manages node names there's no reason to recurse into backing images in the output of query-named-block-nodes. Add a parameter to the command which will return just the top level structs. At one point, Kevin was working on a

[PATCH RFC] qapi: Allow getting flat output from 'query-named-block-nodes'

2019-12-13 Thread Peter Krempa
When a management application manages node names there's no reason to recurse into backing images in the output of query-named-block-nodes. Add a parameter to the command which will return just the top level structs. Signed-off-by: Peter Krempa --- block.c | 5 +++-- block/qapi.c