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

Todd Gill tgill at redhat.com
Wed May 4 20:23:47 UTC 2016


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 monitor/manage multipath.

I thought it was best to take advantage of some of the existing
snprintf_xxx functions rather than adding a library dependency
to multipathd.

Will add code for groups next if this is accepted.

Thanks,
Todd

Todd Gill (1):
  add display of map information in JSON format

 libmultipath/print.c      | 122 ++++++++++++++++++++++++++++++++++++++++++++++
 libmultipath/print.h      |  50 +++++++++++++++++++
 multipathd/cli.c          |   3 ++
 multipathd/cli.h          |   2 +
 multipathd/cli_handlers.c |  93 +++++++++++++++++++++++++++++++++++
 multipathd/cli_handlers.h |   2 +
 multipathd/main.c         |   2 +
 7 files changed, 274 insertions(+)

-- 
2.5.5




More information about the dm-devel mailing list