[dm-devel] [PATCH v5 0/1] add option to output JSON for multipathd command

2016-05-24 Thread Todd Gill
Hi, I had earlier sent an email to dm-devel proposing we add a feature in multipathd to output multipath map topology in JSON format. This patch contains to the code for that feature. Having an option for the CLI to output in JSON would allow higher level applications to more easily

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

2016-05-24 Thread Todd Gill
The changes add 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 change pre-allocates INITIAL_REPLY_LEN * PRINT_JSON_MULTIPLIER(5) * map count. The JSON text is about 5x the size

Re: [dm-devel] multipathd: Add 'sysfs' prioritizer

2016-05-24 Thread Benjamin Marzinski
On Mon, May 23, 2016 at 12:20:28PM +0200, Hannes Reinecke wrote: > Recent kernels have an 'access_state' attribute which allows > us to read the asymmetric access state directly from sysfs. Neat. Just some thoughts. I'm not sure if you want to add a prioritizer option to be able to change what