___ 2.1.73 and knfsd

Yuri Kuzmenko (yuri@killer.cracksoft.kiev.ua)
Sat, 20 Dec 97 01:06:59 +0200


I have small problem... I use linux-nfs-0.4.21 from redhat-contribs. It's
compiled with libc5. But I use redhat linux with glibc2. Maybe, problem here?
But I can't compile linux-nfs from sources (many errors with .h files...)

.config:

CONFIG_EXPERIMENTAL=y
CONFIG_MODULES=y
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_OPTIMIZE=y
CONFIG_BINFMT_AOUT=y
CONFIG_M586=y
CONFIG_BLK_DEV_FD=m
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_MD_STRIPED=y
CONFIG_PACKET=y
CONFIG_NET_ALIAS=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_ALIAS=m
CONFIG_IP_NOSR=y
CONFIG_BLK_DEV_SD=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_NCR53C8XX=y
CONFIG_SCSI_NCR53C8XX_TAGGED_QUEUE=y
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=12
CONFIG_SCSI_NCR53C8XX_SYNC=10
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
CONFIG_NET_ETHERNET=y
CONFIG_NET_ISA=y
CONFIG_NE2000=m
CONFIG_PPP=m
CONFIG_SLIP=m
CONFIG_SLIP_COMPRESSED=y
CONFIG_CDROM=y
CONFIG_EXT2_FS=y
CONFIG_ISO9660_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_PROC_FS=y
CONFIG_NFS_FS=m
CONFIG_NFSD=m
CONFIG_SUNRPC=m
CONFIG_LOCKD=m
CONFIG_SMB_FS=m
CONFIG_NLS=y
CONFIG_NLS_KOI8_R=m
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_RTC=y
CONFIG_SOUND=m
CONFIG_SB=m
CONFIG_ADLIB=m
CONFIG_YM3812=m
SBC_BASE=220
SBC_IRQ=5
SBC_DMA=1
SB_DMA2=-1
SB_MPU_BASE=0
SB_MPU_IRQ=-1

root@killer:/mnt/tmp/bin# ps ax|grep rpc
228 ? S 0:00 rpc.mountd
238 2 SW 0:00 (rpciod)
root@killer:/mnt/tmp/bin# ps ax|grep nfs
235 2 SW 0:02 (nfsd)

!lsmod:

Module Size Used by
nfs 33472 1
nfsd 145028 1
lockd 28108 1 [nfs nfsd]
sunrpc 50400 1 [nfs nfsd lockd]
ne 5932 1
8390 5636 0 [ne]
sb 25136 1
opl3 14392 1
uart401 5816 1 [sb]
sound 85764 0 [sb opl3 uart401]

root@killer:/mnt/tmp/bin# cat /proc/net/rpc/nfs*
net 0 0 0 0
rpc 4732 0 0
proc2 18 0 80 0 0 1802 366 2446 0 0 0 0 0 0 0 0 0 35 3
rc 0 35 4697 4727 5 0 0 0
net 4732 4732 0 0
rpc 4732 0 0 0 0
proc2 18 0 80 0 0 1802 366 2446 0 0 0 0 0 0 0 0 0 35 3

root@killer:~# mount
/dev/hda6 on / type ext2 (rw,noatime)
/dev/hda8 on /usr type ext2 (rw,noatime)
/dev/hda9 on /var type ext2 (rw,noatime)
/dev/md0 on /home type ext2 (rw,noatime)
none on /proc type proc (rw)
localhost:/ on /mnt/tmp type nfs (rw,addr=127.0.0.1)

root@killer:/mnt/tmp/bin# cd /mnt/tmp
nfs_dentry_delete: //bin: ino=4033, count=3, nlink=2

root@killer:/mnt/tmp# cd bin
nfs_lookup: //bin ino=4033 in use, count=3, nlink=2

root@killer:/mnt/tmp/bin# cd ..
nfs_dentry_delete: //bin: ino=4033, count=3, nlink=2

root@killer:/mnt/tmp# cd home
nfs_dentry_delete: //home: ino=2, count=4, nlink=14
nfs_fhget: fhandle changed!
nfs_lookup: //home ino=2 in use, count=4, nlink=14

root@killer:/mnt/tmp/home# ls
bin etc lost+found proc tmp
boot home mnt root usr
dev lib opt sbin var

root@killer:/mnt/tmp/home# pwd
/mnt/tmp/home

root@killer:/mnt/tmp/home# cd home
nfs_fhget: fhandle changed!
nfs_lookup: home/home ino=2 in use, count=5, nlink=14

root@killer:/mnt/tmp/home/home# cd home
nfs_fhget: fhandle changed!
nfs_lookup: home/home ino=2 in use, count=6, nlink=14

root@killer:/mnt/tmp/home/home/home# cd home
nfs_fhget: fhandle changed!
nfs_lookup: home/home ino=2 in use, count=7, nlink=14

root@killer:/mnt/tmp/home/home/home/home# pwd
/mnt/tmp/home/home/home/home

root@killer:/mnt/tmp/home/home/home/home# ls
bin etc lost+found proc tmp
boot home mnt root usr
dev lib opt sbin var

root@killer:/mnt/tmp# ls var
nfs_dentry_delete: //var: ino=2, count=4, nlink=14
nfs_fhget: fhandle changed!
nfs_lookup: //var ino=2 in use, count=4, nlink=17
bin etc lost+found proc tmp
boot home mnt root usr
dev lib opt sbin var

Bug with not-root mounted filesystems.