From: Steve Dickson <SteveD@redhat.com>
To: nfs@lists.sourceforge.net
Subject: [PATCH] nfs-utils: rpc.mountd: cache debugging statements
Date: Tue, 02 Oct 2007 10:22:10 -0400 [thread overview]
Message-ID: <47025412.5010603@RedHat.com> (raw)
The following patch adds some debugging statement to rpc.mound
that show what data is being passed up from the kernel during
mounts. I found these to be very useful but non obtrusive
in my recent travels...
This patch is relative to the Fedora nfs-utils git tree:
git://git.infradead.org/~steved/nfs-utils.fedora
but does apply to Neil's git tree.
steved.
commit 6e7d2cd031bd019c71db2c70851bcc5709105c1d
Author: Steve Dickson <steved@dickson.boston.devel.redhat.com>
Date: Tue Oct 2 09:03:55 2007 -0400
Added a couple debugging statements to the caching
code that shows data be sent up from the kernel.
These statements were very using in debugging some
recent issues.
Signed-off-by: Steve Dickson <steved@redhat.com>
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index d068843..3b670ec 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -78,6 +78,8 @@ void auth_unix_ip(FILE *f)
if (readline(fileno(f), &lbuf, &lbuflen) != 1)
return;
+ xlog(D_CALL, "auth_unix_ip: inbuf '%s'", lbuf);
+
cp = lbuf;
if (qword_get(&cp, class, 20) <= 0 ||
@@ -102,6 +104,7 @@ void auth_unix_ip(FILE *f)
if (client)
qword_print(f, *client?client:"DEFAULT");
qword_eol(f);
+ xlog(D_CALL, "auth_unix_ip: client %p '%s'", client, *client?client:
"DEFAULT");
if (client) free(client);
@@ -273,8 +276,10 @@ void nfsd_fh(FILE *f)
if (readline(fileno(f), &lbuf, &lbuflen) != 1)
return;
- cp = lbuf;
+ xlog(D_CALL, "nfsd_fh: inbuf '%s'", lbuf);
+ cp = lbuf;
+
dom = malloc(strlen(cp));
if (dom == NULL)
return;
@@ -492,6 +497,7 @@ void nfsd_fh(FILE *f)
qword_eol(f);
out:
free(dom);
+ xlog(D_CALL, "nfsd_fh: found %p path %s", found, found ? found->e_path
: NULL);
return;
}
@@ -563,6 +569,8 @@ void nfsd_export(FILE *f)
if (readline(fileno(f), &lbuf, &lbuflen) != 1)
return;
+ xlog(D_CALL, "nfsd_export: inbuf '%s'", lbuf);
+
cp = lbuf;
dom = malloc(strlen(cp));
path = malloc(strlen(cp));
@@ -634,6 +642,7 @@ void nfsd_export(FILE *f)
dump_to_cache(f, dom, path, NULL);
}
out:
+ xlog(D_CALL, "nfsd_export: found %p path %s", found, path ? path : NULL);
if (dom) free(dom);
if (path) free(path);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
reply other threads:[~2007-10-02 14:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=47025412.5010603@RedHat.com \
--to=steved@redhat.com \
--cc=nfs@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox