From: bmarzins@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: multipath-tools ./multipath.conf.defaults libm ...
Date: 13 Jan 2009 22:26:38 -0000 [thread overview]
Message-ID: <20090113222638.14120.qmail@sourceware.org> (raw)
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL4_FC5
Changes by: bmarzins@sourceware.org 2009-01-13 22:26:37
Modified files:
. : multipath.conf.defaults
libmultipath : hwtable.c
path_priority/pp_netapp: Makefile pp_netapp.c
Log message:
Fix for bz #478643
This is just a backport of 282131. It fixes some prio callout issues, and
switches the name
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipath.conf.defaults.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.5.2.9&r2=1.5.2.10
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/hwtable.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.16.2.13&r2=1.16.2.14
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/path_priority/pp_netapp/Makefile.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/path_priority/pp_netapp/pp_netapp.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC5&r1=1.1&r2=1.1.2.1
--- multipath-tools/multipath.conf.defaults 2007/12/03 18:42:15 1.5.2.9
+++ multipath-tools/multipath.conf.defaults 2009/01/13 22:26:36 1.5.2.10
@@ -197,7 +197,7 @@
# product "LUN"
# path_grouping_policy group_by_prio
# getuid_callout "/sbin/scsi_id -g -u -s"
-# prio_callout "/sbin/mpath_prio_netapp /dev/%n"
+# prio_callout "/sbin/mpath_prio_ontap /dev/%n"
# features "1 queue_if_no_path"
# path_checker readsector0
# }
@@ -206,7 +206,7 @@
# product "Nseries"
# path_grouping_policy group_by_prio
# getuid_callout "/sbin/scsi_id -g -u -s"
-# prio_callout "/sbin/mpath_prio_netapp /dev/%n"
+# prio_callout "/sbin/mpath_prio_ontap /dev/%n"
# features "1 queue_if_no_path"
# path_checker readsector0
# failback immediate
--- multipath-tools/libmultipath/hwtable.c 2007/12/03 18:42:15 1.16.2.13
+++ multipath-tools/libmultipath/hwtable.c 2009/01/13 22:26:37 1.16.2.14
@@ -70,10 +70,10 @@
"/sbin/dasdview -j -f /dev/%n", NULL, "0", "0",
"directio", FAILBACK_UNDEF, "S/390", 0, 0, 0);
r += store_hwe_ext(hw, "NETAPP", "LUN", GROUP_BY_PRIO, DEFAULT_GETUID,
- "/sbin/mpath_prio_netapp /dev/%n", NULL,
+ "/sbin/mpath_prio_ontap /dev/%n", NULL,
"1 queue_if_no_path", "readsector0", FAILBACK_UNDEF, NULL, 0, 0, 0);
r += store_hwe_ext(hw, "IBM", "Nseries", GROUP_BY_PRIO, DEFAULT_GETUID,
- "/sbin/mpath_prio_netapp /dev/%n", NULL,
+ "/sbin/mpath_prio_ontap /dev/%n", NULL,
"1 queue_if_no_path", "readsector0", -FAILBACK_IMMEDIATE,
NULL, 0, 0, 128);
r += store_hwe_ext(hw, "Pillar", "Axiom 500", GROUP_BY_PRIO,
--- multipath-tools/path_priority/pp_netapp/Makefile 2008/05/06 19:49:39 1.1.2.1
+++ multipath-tools/path_priority/pp_netapp/Makefile 2009/01/13 22:26:37 1.1.2.2
@@ -1,4 +1,5 @@
-EXEC = mpath_prio_netapp
+EXEC = mpath_prio_ontap
+LINK = mpath_prio_netapp
BUILD = glibc
OBJS = pp_netapp.o
@@ -17,9 +18,11 @@
install: $(EXEC)
install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
+ ln -sf $(DESTDIR)$(bindir)/$(EXEC) $(DESTDIR)$(bindir)/$(LINK)
uninstall:
rm $(DESTDIR)$(bindir)/$(EXEC)
+ rm $(DESTDIR)$(bindir)/$(LINK)
clean:
rm -f *.o $(EXEC)
--- multipath-tools/path_priority/pp_netapp/pp_netapp.c 2005/11/21 23:28:32 1.1
+++ multipath-tools/path_priority/pp_netapp/pp_netapp.c 2009/01/13 22:26:37 1.1.2.1
@@ -29,7 +29,7 @@
#define INQUIRY_CMDLEN 6
#define DEFAULT_PRIO 10
#define RESULTS_MAX 256
-#define SG_TIMEOUT 30000
+#define SG_TIMEOUT 60000
static void dump_cdb(unsigned char *cdb, int size)
@@ -209,7 +209,7 @@
memset(&results, 0, sizeof (results));
rc = send_gva(dev, 0x41, results, &results_size);
- if (rc == 0) {
+ if (rc >= 0) {
tot_len = results[0] << 24 | results[1] << 16 |
results[2] << 8 | results[3];
if (tot_len <= 8) {
@@ -229,12 +229,16 @@
is_iscsi_hardware = 1;
goto prio_select;
}
+ } else {
+ return 0;
}
try_fcp_proxy:
rc = get_proxy(dev);
if (rc >= 0) {
is_proxy = rc;
+ } else {
+ return 0;
}
prio_select:
next reply other threads:[~2009-01-13 22:26 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 22:26 bmarzins [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-14 21:56 multipath-tools ./multipath.conf.defaults libm bmarzins
2011-01-21 16:57 bmarzins
2010-11-12 20:17 bmarzins
2010-09-21 18:06 bmarzins
2010-09-14 19:42 bmarzins
2010-09-03 3:46 bmarzins
2010-08-24 21:51 bmarzins
2010-08-09 21:35 bmarzins
2010-08-09 18:38 bmarzins
2010-02-10 4:11 bmarzins
2010-01-26 5:50 bmarzins
2009-12-02 19:15 bmarzins
2009-09-28 18:41 bmarzins
2009-09-28 18:28 bmarzins
2009-09-11 15:19 bmarzins
2009-08-19 21:52 bmarzins
2009-01-15 22:47 bmarzins
2008-08-29 18:30 bmarzins
2008-07-12 17:36 bmarzins
2008-07-12 2:44 bmarzins
2008-07-12 0:07 bmarzins
2008-01-03 20:16 bmarzins
2007-10-09 21:48 bmarzins
2007-09-11 18:06 bmarzins
2007-08-14 18:08 bmarzins
2007-08-14 18:23 ` S. J. van Harmelen
2007-05-07 17:59 bmarzins
2006-12-19 22:51 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=20090113222638.14120.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.