knfsd expiriments

Lenart Gabor (lgb@hal2000.hal.vein.hu)
Fri, 18 Dec 1998 12:55:30 +0100


I've just tried out knfsd. After mounting oxygene on green via nfs I
tried to mount an ext2 fs into a directory which was exported and mounted
by green. The result :

root@oxygene:~# /etc/init.d/nfs-server start
Starting Kernel NFS services: rpc.krquotad rpc.kmountd rpc.knfsd.

root@green:~# mount oxygene:/mnt/hda7 /mnt/oxygene/
root@green:~# ls -l /mnt/oxygene/
total 5
drwxr-xr-x 2 root root 1024 Oct 27 09:21 .
drwxr-xr-x 16 root root 4096 Dec 10 19:50 ..

root@oxygene:~# mount /dev/hda7 /mnt/hda7

root@green:~# ls -la /mnt/oxygene/
total 0
root@green:~# umount /mnt/oxygene
root@green:~# mount oxygene:/mnt/hda7 /mnt/oxygene/
mount: oxygene:/mnt/hda7 failed, reason given by server: Permission denied

Dec 18 12:45:06 oxygene kernel: fh_verify: mnt/hda7 permission failure, acc=4, error=16777216

root@oxygene:~# /etc/init.d/nfs-server stop
Stopping Kernel NFS services: rpc.knfsd rpc.krquotad rpc.kmountd.
root@oxygene:~# /etc/init.d/nfs-server start
Starting Kernel NFS services: rpc.krquotad rpc.kmountd rpc.knfsd.

root@green:~# mount oxygene:/mnt/hda7 /mnt/oxygene/
root@green:~# ls -la /mnt/oxygene/
total 21
drwxrwxrwt 7 root root 1024 Dec 10 19:56 .
drwxr-xr-x 16 root root 4096 Dec 10 19:50 ..
drwxr-xr-x 2 root root 1024 Dec 7 21:08 data
drwxr-xr-x 2 root root 1024 Dec 7 21:08 llog
drwxr-xr-x 2 root root 1024 Dec 7 21:08 log
drwxr-xr-x 2 root root 12288 Oct 21 03:07 lost+found
drwxrwxr-x 3 lgb lgb 1024 Dec 10 19:57 src

Story #2:

I created a directory on oxygene (/mnt/hda7/o) and I mounted another ext2
fs into this directory then I tried to ls it on green. The result :

root@green:~# cd /mnt/oxygene/o/
root@green:/mnt/oxygene/o# ls -la
total 0
root@green:/mnt/oxygene/o#

On oxygene :

Dec 18 12:45:47 oxygene kernel: exp_do_unexport: 03:03 last use, flushing cache
Dec 18 12:51:42 oxygene kernel: fh_verify: //o permission failure, acc=4, error=16777216

Kernel is 2.1.131UP.
Is it corrected by an ac patch or 2.1.132preX ?

Thanx : Gábor,

---[ LGB/DC ]------------------[ root@hal2000 ]-----------------[ LINUX ]---
"The truth is out there" "We're living together" "The future is dark."
---[ 88/422022-4602 ]--[ http://www.hal.vein.hu/~lgb ]------[ 87/477074 ]---

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