From patchwork Wed Jun 24 21:15:53 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: 32262 X-Patchwork-Delegate: bmarzins@redhat.com 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 n5OLGEwW029141 for ; Wed, 24 Jun 2009 21:16:14 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 2E3A1618E20; Wed, 24 Jun 2009 17:16:13 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id n5OLGBPb012586 for ; Wed, 24 Jun 2009 17:16:11 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5OLGAAY024887 for ; Wed, 24 Jun 2009 17:16:10 -0400 Received: from sourceware.org (sourceware.org [209.132.176.174]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id n5OLFr0j005093 for ; Wed, 24 Jun 2009 17:15:53 -0400 Received: (qmail 21044 invoked by uid 9475); 24 Jun 2009 21:15:53 -0000 Date: 24 Jun 2009 21:15:53 -0000 Message-ID: <20090624211553.21042.qmail@sourceware.org> From: bmarzins@sourceware.org To: dm-cvs@sourceware.org, dm-devel@redhat.com X-RedHat-Spam-Score: -4 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-Scanned-By: MIMEDefang 2.63 on 172.16.48.31 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 CVSROOT: /cvs/dm Module name: multipath-tools Branch: RHEL5_FC6 Changes by: bmarzins@sourceware.org 2009-06-24 21:15:52 Modified files: libcheckers : rdac.c Log message: Pulled Charlie Brady's patch from dm-devel to make the rdac checker print the right message on changes to PATH_UP and PATH_GHOST. 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.2&r2=1.1.2.3 --- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel --- multipath-tools/libcheckers/Attic/rdac.c 2007/06/18 21:12:54 1.1.2.2 +++ multipath-tools/libcheckers/Attic/rdac.c 2009/06/24 21:15:52 1.1.2.3 @@ -105,5 +105,12 @@ return PATH_DOWN; } - return ((inq.avtcvp & 0x1) ? PATH_UP : PATH_GHOST); + if (inq.avtcvp & 0x1) { + MSG(c, MSG_RDAC_UP); + return PATH_UP; + } + else { + MSG(c, MSG_RDAC_GHOST); + return PATH_GHOST; + } }