multipath: add option to change the number of error messages
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 19 Dec 2011 21:41:57 +0000 (15:41 -0600)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Fri, 23 Dec 2011 20:04:59 +0000 (21:04 +0100)
commitd61ed22b72ddc4de20caef2daf099e07f7777304
tree5112d4c30c771a99a29bab2c8a8957383427510a
parentbb817e4b8c2eef12fb831a17cf935db8a1677d06
multipath: add option to change the number of error messages

This patch adds a new default config parameter, log_checker_err.  It accepts
two values, "once" and "always", and defaults of "always".  It controls
how multipathd logs checker error messages.  If it's set to "once", only the
first checker error message is logged at logging level 2. All future messages
are logged at level 3, until the device is restored or removed. If it's set
to "always", all messages are logged at level 2, like multipathd currently does.

This version actually compiles.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/config.h
libmultipath/dict.c
libmultipath/structs.h
multipath/multipath.conf.5
multipathd/main.c