All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wendy Cheng <wcheng@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 4/4 Revised] NLM - user mode statd changes
Date: Thu, 05 Apr 2007 17:52:59 -0400	[thread overview]
Message-ID: <46156FBB.2060701@redhat.com> (raw)

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>

WARNING: multiple messages have this Message-ID (diff)
From: Wendy Cheng <wcheng@redhat.com>
To: nfs@lists.sourceforge.net, cluster-devel@redhat.com
Cc: Lon Hohberger <lhh@redhat.com>
Subject: [PATCH 4/4 Revised] NLM - user mode statd changes
Date: Thu, 05 Apr 2007 17:52:59 -0400	[thread overview]
Message-ID: <46156FBB.2060701@redhat.com> (raw)

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

             reply	other threads:[~2007-04-05 21:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-05 21:52 Wendy Cheng [this message]
2007-04-05 21:52 ` [PATCH 4/4 Revised] NLM - user mode statd changes Wendy Cheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46156FBB.2060701@redhat.com \
    --to=wcheng@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.