[PATCH] Fix RPC client warning in 2.5.58...

Trond Myklebust (trond.myklebust@fys.uio.no)
Tue, 14 Jan 2003 16:24:54 +0100


>>>>> " " == Linus Torvalds <torvalds@transmeta.com> writes:

> Trond, with the latest stuff I'm getting infinite streams of
> /lockd/clntef03c480 RPC: Couldn't create pipefs entry

This appears to be due to the lockd process starting RPC clients as an
unprivileged user, causing path_walk() to fail. The following patch
should fix it.

Cheers,
Trond

diff -u --recursive --new-file linux-2.5.58/net/sunrpc/rpc_pipe.c linux-2.5.58-00-fix_warn/net/sunrpc/rpc_pipe.c
--- linux-2.5.58/net/sunrpc/rpc_pipe.c 2003-01-12 22:39:49.000000000 +0100
+++ linux-2.5.58-00-fix_warn/net/sunrpc/rpc_pipe.c 2003-01-14 16:05:21.000000000 +0100
@@ -342,19 +342,19 @@
static struct rpc_filelist files[] = {
[RPCAUTH_lockd] = {
.name = "lockd",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
[RPCAUTH_nfs] = {
.name = "nfs",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
[RPCAUTH_portmap] = {
.name = "portmap",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
[RPCAUTH_statd] = {
.name = "statd",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
};

@@ -425,7 +425,7 @@
return -ENODEV;
}
nd->mnt = mntget(rpc_mount);
- nd->dentry = dget(rpc_mount->mnt_sb->s_root);
+ nd->dentry = dget(rpc_mount->mnt_root);
nd->last_type = LAST_ROOT;
nd->flags = flags;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/