* [PATCH] nfs-utils: rpc.mountd: cache debugging statements
@ 2007-10-02 14:22 Steve Dickson
0 siblings, 0 replies; only message in thread
From: Steve Dickson @ 2007-10-02 14:22 UTC (permalink / raw)
To: nfs
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-02 14:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 14:22 [PATCH] nfs-utils: rpc.mountd: cache debugging statements Steve Dickson
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.