All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 4/4 Revised] NLM - user mode statd changes
@ 2007-04-05 21:52 ` Wendy Cheng
  0 siblings, 0 replies; 2+ messages in thread
From: Wendy Cheng @ 2007-04-05 21:52 UTC (permalink / raw)
  To: cluster-devel.redhat.com

User mode nfs-utils changes (nfs-utils-1.1.0-rc1) - it re-enables 
my_name to the correct ip interface passed by kernel (via patch 4-3) 
that accepts the relevant lock request.  Check out "man rpc.statd" and 
"man sm-notify" for details.

Also included a minor bug fix with sm_unmon_1_svc() where it should have 
used dns_name.

-- Wendy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 004_user_statd.patch
Type: text/x-patch
Size: 1321 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070405/e3dcfffb/attachment.bin>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 4/4 Revised] NLM - user mode statd changes
@ 2007-04-05 21:52 ` Wendy Cheng
  0 siblings, 0 replies; 2+ messages in thread
From: Wendy Cheng @ 2007-04-05 21:52 UTC (permalink / raw)
  To: nfs, cluster-devel; +Cc: Lon Hohberger

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

User mode nfs-utils changes (nfs-utils-1.1.0-rc1) - it re-enables 
my_name to the correct ip interface passed by kernel (via patch 4-3) 
that accepts the relevant lock request.  Check out "man rpc.statd" and 
"man sm-notify" for details.

Also included a minor bug fix with sm_unmon_1_svc() where it should have 
used dns_name.

-- Wendy


[-- Attachment #2: 004_user_statd.patch --]
[-- Type: text/x-patch, Size: 1321 bytes --]

Signed-off-by: S. Wendy Cheng <wcheng@redhat.com>
Signed-off-by: Lon Hohberger  <lhh@redhat.com>

 monitor.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- nfs-utils-1.1.0-rc1/utils/statd/monitor.c	2007-03-28 23:55:33.000000000 -0400
+++ nfs-utils/utils/statd/monitor.c	2007-04-05 11:52:11.000000000 -0400
@@ -70,7 +70,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.
 	 *
@@ -327,7 +327,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. */
@@ -357,7 +357,7 @@ sm_unmon_1_svc(struct mon_id *argp, stru
 			ha_callout("del-client", mon_name, my_name, -1);
 
 			nlist_free(&rtnl, clnt);
-			xunlink(SM_DIR, mon_name, 1);
+			xunlink(SM_DIR, clnt->dns_name, 1);
 
 			return (&result);
 		} else
@@ -394,7 +394,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: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- 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] 2+ messages in thread

end of thread, other threads:[~2007-04-05 22:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 21:52 [Cluster-devel] [PATCH 4/4 Revised] NLM - user mode statd changes Wendy Cheng
2007-04-05 21:52 ` Wendy Cheng

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.