[multipathd] add "show maps format ..." cli command
authorChristophe Varoqui <christophe.varoqui@free.fr>
Thu, 13 Nov 2008 22:52:20 +0000 (23:52 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Thu, 13 Nov 2008 22:52:20 +0000 (23:52 +0100)
commit3484274184cc4be889718c97ebe0536623043fa8
tree25b603372b63e7ab2fe7807a9c8fe76abe7c2098
parent2dfa39b49d9ca80d95881adde895b429bebdc6b0
[multipathd] add "show maps format ..." cli command

Just like "show paths format ...", it gives users more control
over the report format of multipaths information.

Example:
$ sudo multipathd -k'show maps format "%n %s %S %d %t %r %Q %N"'
name              vend/prod/rev    size sysfs dm-st  write_prot queueing paths
353333330000007d0 Linux,scsi_debug 8.0M dm-1  active rw         -        2
353333330000007d1 Linux,scsi_debug 8.0M dm-2  active rw         -        2
35333333000000bb8 Linux,scsi_debug 8.0M dm-3  active rw         -        2
35333333000000bb9 Linux,scsi_debug 8.0M dm-4  active rw         -        2
multipathd/cli.c
multipathd/cli_handlers.c
multipathd/cli_handlers.h
multipathd/main.c