Re: [dm-devel] [PATCH 1/1] add display of map information in JSON format

2016-05-05 Thread Gris Ge
On Wed, May 04, 2016 at 04:23:48PM -0400, Todd Gill wrote: > The patch adds these commands: > > multipathd show maps json > multipathd show map $map json > > Each command will output the requested map(s) in JSON. > > For the "show maps json" command, the patch pre-allocates > INITIAL_REPLY_LEN *

[dm-devel] [PATCH 1/1] add display of map information in JSON format

2016-05-04 Thread Todd Gill
The patch adds these commands: multipathd show maps json multipathd show map $map json Each command will output the requested map(s) in JSON. For the "show maps json" command, the patch pre-allocates INITIAL_REPLY_LEN * 5. The JSON text is about 5x the size of the "show maps topology" text.