2009-08-28 08:49:59

by Toralf Förster

[permalink] [raw]
Subject: nfsv4 directory mount plays hard to get

Hello,

I'm wondering why a mount of a nfs4 directory exported by a user mode l=
inux image
(hostname n22_uml) at a mount point of the host (hostname n22) doesn't =
work simply.
Instead I've to specify the parameter "n22_uml:" oncy. After that all s=
ubsequent
umount/mounts of that particular file systems works w/o specifying "n22=
_uml:".

n22 ~ # mount /mnt/nfs/n22_uml
mount.nfs4: No such device
n22 ~ # mount -t nfs n22_uml: /mnt/nfs/n22_uml
mount.nfs: access denied by server while mounting n22_uml:
n22 ~ # mount -t nfs4 n22_uml: /mnt/nfs/n22_uml
n22 ~ # umount /mnt/nfs/n22_uml
n22 ~ # mount /mnt/nfs/n22_uml
n22 ~ # umount /mnt/nfs/n22_uml

The fstab entry at the host system :
n22 ~ # grep nfs /etc/fstab
n22_uml: /mnt/nfs/n22_uml nfs4 noauto

The exports file at the UML :
n22_uml ~ # cat /etc/exports=20
# /etc/exports: NFS file systems being exported. See exports(5).

/tmp n22*(rw,fsid=3D0,no_subtree_check,no_root_squash)

The host runs 2.6.30.5, the UML 2.6.31-rc8.

--=20
MfG/Sincerely

Toralf F=F6rster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3