Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 4/4 Reference] NLM failover - user mode statd
@ 2006-09-14  4:53 Wendy Cheng
  0 siblings, 0 replies; only message in thread
From: Wendy Cheng @ 2006-09-14  4:53 UTC (permalink / raw)
  To: nfs, cluster-devel; +Cc: lhh

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

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 <wcheng@redhat.com>
Signed-off-by: Lon Hohberger  <lhh@redhat.com>

 nfs-utils-1.0.8-rc4/utils/statd/monitor.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)



[-- Attachment #2: gfs_statd_user.patch --]
[-- Type: text/x-patch, Size: 1128 bytes --]

--- 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;

[-- Attachment #3: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-14  4:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14  4:53 [PATCH 4/4 Reference] NLM failover - user mode statd Wendy Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox