[multipathd] add "show config" CLI command
authorChristophe Varoqui <root@xa-s05.(none)>
Tue, 17 Jan 2006 09:08:49 +0000 (10:08 +0100)
committerChristophe Varoqui <root@xa-s05.(none)>
Tue, 17 Jan 2006 09:08:49 +0000 (10:08 +0100)
commit315288471f44c0fc8df9b9906443b8b7da671696
treec4fd68973ca24c7d8b980854b6b5cef148a1e057
parentc769721a2fd8204eb1e52dc8dcbb6cc49c2309af
[multipathd] add "show config" CLI command

This commands dumps a multipath.conf config file.

The "defaults" section is factorized : settings in sync with the internal
defaults are not printed.

The "devices" section lists the internal hwtable, plus mods and adds from
the actual config file. The layout is factorized : settings in sync with
the "defaults" section are not printed.

The "devnode_blacklist" section is ommited for now, as this requires a bit
more infrastructure.

The "multipaths" section is not factorized as we can not reliably guess the
hardware a multipath is parented to. Multipath entries are just clones
of their actual config file equivalent.
12 files changed:
libmultipath/dict.c
libmultipath/dict.h
libmultipath/discovery.c
libmultipath/parser.c
libmultipath/parser.h
libmultipath/print.c
libmultipath/print.h
multipathd/cli.c
multipathd/cli.h
multipathd/cli_handlers.c
multipathd/cli_handlers.h
multipathd/main.c