From: bmarzins@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: multipath-tools ./multipath.conf.annotated lib ...
Date: 29 Apr 2009 04:41:34 -0000 [thread overview]
Message-ID: <20090429044134.9576.qmail@sourceware.org> (raw)
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2009-04-29 04:41:33
Modified files:
. : multipath.conf.annotated
libmultipath : config.c defaults.h dict.c
Log message:
Fix for bz #471854
Port of Hannes Reinecke's verbosity patch from upstream.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipath.conf.annotated.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.18.2.10&r2=1.18.2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/config.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.19.2.7&r2=1.19.2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/defaults.h.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.7&r2=1.7.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/dict.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.17.2.9&r2=1.17.2.10
--- multipath-tools/multipath.conf.annotated 2009/01/16 22:47:31 1.18.2.10
+++ multipath-tools/multipath.conf.annotated 2009/04/29 04:41:32 1.18.2.11
@@ -16,6 +16,16 @@
# udev_dir /dev
#
# #
+# # name : verbosity
+# # scope : multipath & multipathd
+# # desc : The verbosity level of the command. It can be overridden by
+# # the -v command line option.
+# # values : 0-6
+# # default : 2
+# #
+# verbosity 3
+#
+# #
# # name : polling_interval
# # scope : multipathd
# # desc : interval between two path checks in seconds
--- multipath-tools/libmultipath/config.c 2008/09/04 20:09:48 1.19.2.7
+++ multipath-tools/libmultipath/config.c 2009/04/29 04:41:33 1.19.2.8
@@ -407,7 +407,7 @@
* internal defaults
*/
if (!conf->verbosity)
- conf->verbosity = 2;
+ conf->verbosity = DEFAULT_VERBOSITY;
conf->dev_type = DEV_NONE;
conf->minio = 1000;
--- multipath-tools/libmultipath/defaults.h 2006/06/06 18:32:43 1.7
+++ multipath-tools/libmultipath/defaults.h 2009/04/29 04:41:33 1.7.2.1
@@ -11,6 +11,7 @@
#define DEFAULT_NO_PATH_RETRY NO_PATH_RETRY_UNDEF
#define DEFAULT_PGTIMEOUT -PGTIMEOUT_NONE
#define DEFAULT_USER_FRIENDLY_NAMES 0
+#define DEFAULT_VERBOSITY 2
#define DEFAULT_CHECKINT 5
#define MAX_CHECKINT(a) (a << 2)
--- multipath-tools/libmultipath/dict.c 2008/12/02 20:24:24 1.17.2.9
+++ multipath-tools/libmultipath/dict.c 2009/04/29 04:41:33 1.17.2.10
@@ -35,6 +35,17 @@
}
static int
+verbosity_handler(vector strvec)
+{
+ char * buff;
+
+ buff = VECTOR_SLOT(strvec, 1);
+ conf->verbosity = atoi(buff);
+
+ return 0;
+}
+
+static int
udev_dir_handler(vector strvec)
{
conf->udev_dir = set_value(strvec);
@@ -1651,6 +1662,14 @@
}
static int
+snprint_def_verbosity (char * buff, int len, void * data)
+{
+ if (conf->checkint == DEFAULT_VERBOSITY)
+ return 0;
+ return snprintf(buff, len, "%i", conf->verbosity);
+}
+
+static int
snprint_def_udev_dir (char * buff, int len, void * data)
{
if (!conf->udev_dir)
@@ -1927,6 +1946,8 @@
init_keywords(void)
{
install_keyword_root("defaults", NULL);
+ install_keyword("verbosity", &verbosity_handler, &snprint_def_verbosity)
+;
install_keyword("polling_interval", &polling_interval_handler, &snprint_def_polling_interval);
install_keyword("udev_dir", &udev_dir_handler, &snprint_def_udev_dir);
install_keyword("selector", &def_selector_handler, &snprint_def_selector);
next reply other threads:[~2009-04-29 4:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 4:41 bmarzins [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-02-18 18:27 multipath-tools ./multipath.conf.annotated lib bmarzins
2010-04-08 19:31 bmarzins
2010-01-27 22:33 bmarzins
2009-01-16 22:47 bmarzins
2009-01-16 21:30 bmarzins
2008-08-29 21:30 bmarzins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090429044134.9576.qmail@sourceware.org \
--to=bmarzins@sourceware.org \
--cc=dm-cvs@sourceware.org \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.