Error mount NFS -- nfs4_get_rootfh
Geoffrey Leach
geoff at hughes.net
Sun Jan 1 00:16:30 UTC 2012
Fedora 16 on both server and client.
/etc/exports
/nfs4exports 192.168.0.0/24
(ro,sync,insecure,root_squash,no_subtree_check,fsid=0)
/nfs4exports/tmp 192.168.0.0/24
(rw,nohide,sync,insecure,root_squash,no_subtree_check)
ll -d /nfs4exports /nfs4exports/*
drwxrwxrwt 5 root root 4.0K Dec 31 15:34 /nfs4export
ll -d /nfs4exports /nfs4exports/*
drwxrwxrwt. 30 root root 4.0K Dec 31 16:06 /nfs4exports/tmp
client --
sysctl -w sunrpc.nfs_debug=1023
root at pvr[60]->mount -t nfs4 mtranch:/tmp /tmpm
mount.nfs4: access denied by server while mounting mtranch:/tmp
root at pvr[61]->dmesg|tail
[ 4840.385627] encode_compound: tag=
[ 4840.386755] nfs4_get_rootfh: getroot error = 13
[ 4840.386757] <-- nfs4_get_rootfh() = -13
[ 4840.386759] --> nfs_free_server()
[ 4840.387247] --> nfs_put_client({1})
[ 4840.387249] --> nfs_free_client(4)
[ 4840.387327] <-- nfs_free_client()
[ 4840.387337] <-- nfs_free_server()
[ 4840.387338] <-- nfs4_create_server() = error -13
[ 4840.387341] <-- nfs4_mount() = -13 [error]
The error is generated by /* getroot.c: get the root dentry for an NFS
mount ...
/* Start by getting the root filehandle from the server */
ret = server->nfs_client->rpc_ops->getroot(server, mntfh,
&fsinfo);
if (ret < 0) {
dprintk("nfs4_get_rootfh: getroot error = %d\n", -ret);
goto out;
}
So, what the .... is the root filehandle in this context and how do I
define it?
More information about the users
mailing list