[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH 4/4 Revised] NLM - user mode statd changes



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

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;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]