From: Wendy Cheng Subject: [PATCH 4/5] NLM failover - user mode statd changes Date: Mon, 14 Aug 2006 02:04:10 -0400 Message-ID: <1155535450.3416.33.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-3UZ/FUHseVSVjbE2MyY8" Cc: cluster-devel@redhat.com, lhh@redhat.com Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1GCVN4-0006aA-7P for nfs@lists.sourceforge.net; Sun, 13 Aug 2006 22:52:18 -0700 Received: from mx1.redhat.com ([66.187.233.31]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1GCVN3-0000qW-IL for nfs@lists.sourceforge.net; Sun, 13 Aug 2006 22:52:18 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k7E5qGWA022054 for ; Mon, 14 Aug 2006 01:52:16 -0400 To: Linux NFS Mailing List List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net --=-3UZ/FUHseVSVjbE2MyY8 Content-Type: text/plain Content-Transfer-Encoding: 7bit This is nfs-utils user mode patch based on nfs-utils-1.0.8-rc4. It re-enables my_name to the correct ip interface passed by kernel (via patch 5-3) that accepts the relevant lock request. Signed-off-by: S. Wendy Cheng Signed-off-by: Lon Hohberger nfs-utils-1.0.8-rc4/utils/statd/monitor.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) --=-3UZ/FUHseVSVjbE2MyY8 Content-Disposition: attachment; filename=gfs_statd_user.patch Content-Type: text/x-patch; name=gfs_statd_user.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- nfs-util/nfs-utils-1.0.8-rc4/utils/statd/monitor.c 2006-07-07 17:58:22.000000000 -0400 +++ nfs-user/nfs-utils-1.0.8-rc4/utils/statd/monitor.c 2006-08-13 02:06:52.000000000 -0400 @@ -68,7 +68,7 @@ sm_mon_1_svc(struct mon *argp, struct sv goto failure; } my_addr.s_addr = htonl(INADDR_LOOPBACK); - my_name = "127.0.0.1"; + note(N_DEBUG, "sm_mon_1_svc my_name=%s\n", my_name); /* 2. Reject any registrations for non-lockd services. * @@ -181,6 +181,7 @@ sm_mon_1_svc(struct mon *argp, struct sv goto failure; } free(path); + /* PRC: do the HA callout: */ ha_callout("add-client", mon_name, my_name, -1); nlist_insert(&rtnl, clnt); @@ -231,7 +232,7 @@ sm_unmon_1_svc(struct mon_id *argp, stru inet_ntoa(caller)); goto failure; } - my_name = "127.0.0.1"; + note(N_DEBUG, "sm_unmon_1_svc my_name=%s\n", my_name); #endif /* Check if we're monitoring anyone. */ @@ -296,7 +297,7 @@ sm_unmon_all_1_svc(struct my_id *argp, s inet_ntoa(caller)); goto failure; } - my_name = "127.0.0.1"; + note(N_DEBUG, "sm_unmon_all_1_svc my_name=%s\n", my_name); #endif result.state = MY_STATE; --=-3UZ/FUHseVSVjbE2MyY8 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --=-3UZ/FUHseVSVjbE2MyY8 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs --=-3UZ/FUHseVSVjbE2MyY8--