From: bmarzins@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: multipath-tools/libcheckers rdac.c
Date: 4 Nov 2009 20:21:44 -0000 [thread overview]
Message-ID: <20091104202144.19493.qmail@sourceware.org> (raw)
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2009-11-04 20:21:43
Modified files:
libcheckers : rdac.c
Log message:
Fix for bz #531744. In rdac path checker, check if devices are connected,
and if they are not, mark the path as failed. Already upstream.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libcheckers/rdac.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.1.2.3&r2=1.1.2.4
--- multipath-tools/libcheckers/Attic/rdac.c 2009/06/24 21:15:52 1.1.2.3
+++ multipath-tools/libcheckers/Attic/rdac.c 2009/11/04 20:21:43 1.1.2.4
@@ -90,7 +90,8 @@
struct volume_access_inq
{
- char dontcare0[8];
+ char PQ_PDT;
+ char dontcare0[7];
char avtcvp;
char dontcare1[39];
};
@@ -103,6 +104,11 @@
if (0 != do_inq(c->fd, 0xC9, &inq, sizeof(struct volume_access_inq))) {
MSG(c, MSG_RDAC_DOWN);
return PATH_DOWN;
+ } else {
+ if ((inq.PQ_PDT & 0x20) || (inq.PQ_PDT & 0x7f)) {
+ /* LUN not connected*/
+ return PATH_DOWN;
+ }
}
if (inq.avtcvp & 0x1) {
next reply other threads:[~2009-11-04 20:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 20:21 bmarzins [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-06-24 21:15 multipath-tools/libcheckers rdac.c 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=20091104202144.19493.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.