From patchwork Wed Nov 4 20:21:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bmarzins@sourceware.org X-Patchwork-Id: 57767 Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA4KM171025853 for ; Wed, 4 Nov 2009 20:22:01 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id 21F57619CE6; Wed, 4 Nov 2009 15:22:00 -0500 (EST) Received: from int-mx03.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id nA4KLwun007627 for ; Wed, 4 Nov 2009 15:21:58 -0500 Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.10]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA4KLwbC027018 for ; Wed, 4 Nov 2009 15:21:58 -0500 Received: from sourceware.org (sourceware.org [209.132.176.174]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id nA4KLiDF015673 for ; Wed, 4 Nov 2009 15:21:44 -0500 Received: (qmail 19495 invoked by uid 9475); 4 Nov 2009 20:21:44 -0000 Date: 4 Nov 2009 20:21:44 -0000 Message-ID: <20091104202144.19493.qmail@sourceware.org> From: bmarzins@sourceware.org To: dm-cvs@sourceware.org, dm-devel@redhat.com X-RedHat-Spam-Score: -4 (RCVD_IN_DNSWL_MED) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.10 X-loop: dm-devel@redhat.com Cc: Subject: [dm-devel] multipath-tools/libcheckers rdac.c X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com --- 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) {