This is a discussion on NFS strange name truncation within the mailing.openbsd.tech forums, part of the OpenBSD category; --> I'm experiencing strange name truncation on NFS. in the following session, "peach" is NFS client running OpenBSD-current, "now" is ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm experiencing strange name truncation on NFS. in the following session, "peach" is NFS client running OpenBSD-current, "now" is NFS server which is MacOS X 10.4 (intel). regardless from NFS version i use, filename gets truncated to 4 bytes in "ls" (readdir?). i need to specify full name on ls -d (stat) and chdir. NFS guru, could you help me? itojun itojun[peach:/export/home/itojun] -a OpenBSD peach.itojun.org 3.9 GENERIC#2 macppc itojun[peach:~] sudo mount now:/Volumes/Terabyte /mnt itojun[peach:~] mount /dev/wd0a on / type ffs (local) /dev/wd0h on /export type ffs (local, nodev, nosuid) /dev/wd0g on /usr type ffs (local, nodev) /dev/wd0f on /var type ffs (local, nodev, nosuid) now:/Volumes/Terabyte on /mnt type nfs (v3, udp, timeo=100) itojun[peach:~] ls /mnt/home itoj itojun[peach:~] ls -d /mnt/home/itoj ls: /mnt/home/itoj: No such file or directory itojun[peach:~] ls -d /mnt/home/itojun /mnt/home/itojun itojun[peach:~] ls -l -d /mnt/home/itojun drwxr-xr-x 22 itojun wheel 1024 Mar 26 15:03 /mnt/home/itojun itojun[peach:~] sudo umount /mnt itojun[peach:~] sudo mount_nfs -2 now:/Volumes/Terabyte /mnt itojun[peach:~] ls /mnt/home itoj itojun[peach:~] ls -l -d /mnt/home/itojun drwxr-xr-x 22 itojun wheel 1024 Mar 26 15:03 /mnt/home/itojun itojun[peach:~] sudo umount /mnt ---- tcpdump for the following commands # mount now:/Volumes/Terabyte /mnt # ls /mnt/home itoj # ls /mnt/home/itoj ls: /mnt/home/itoju: No such file or directory # ls /mnt/home/itojun (file appears) # umount /mnt # tcpdump -n -i gem0 -vvv -s 2000 host now tcpdump: listening on gem0, link-type EN10MB 15:54:35.773768 202.232.15.94.881 > 221.249.121.226.111: [udp sum ok] udp 56 (ttl 64, id 1638, len 84) 15:54:35.811777 221.249.121.226.111 > 202.232.15.94.881: [udp sum ok] udp 28 (ttl 63, id 16623, len 56) 15:54:35.811899 202.232.15.94.808 > 221.249.121.226.111: [udp sum ok] udp 56 (ttl 64, id 26296, len 84) 15:54:35.814172 221.249.121.226.111 > 202.232.15.94.808: [udp sum ok] udp 28 (ttl 63, id 16627, len 56) 15:54:35.814373 202.232.15.94.774 > 221.249.121.226.989: [udp sum ok] udp 128 (ttl 64, id 23847, len 156) 15:54:35.816184 221.249.121.226.989 > 202.232.15.94.774: [udp sum ok] udp 64 (ttl 63, id 16630, len 92) 15:54:35.816430 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f3eb4 88 fsinfo fh Unknown/1 (ttl 64, id 13078, len 116) 15:54:35.818276 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f3eb4 reply ok 164 fsinfo POST: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143355603.000000 1143292140.000000 1143292140.000000 rtmax 16384 rtpref 8192 wtmax 16384 wtpref 8192 dtpref 8192 rtmult 512 wtmult 512 maxfsz 0xffffffffffffffff delta 0.000001 (ttl 63, id 16632, len 192) 15:54:35.818342 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f3f02 88 fsstat fh Unknown/1 (ttl 64, id 1276, len 116) 15:54:35.820266 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f3f02 reply ok 168 fsstat POST: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143355603.000000 1143292140.000000 1143292140.000000 tbytes 0xe197d9d000 fbytes 0xdf53493400 abytes 0xde49222800 tfiles 0xe26abbe ffiles 0xe0e5195 afiles 0xe0e5195 invar 0 (ttl 63, id 16636, len 196) 15:54:40.193418 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f3f20 100 access fh Unknown/1 0001 (ttl 64, id 28523, len 128) 15:54:40.195091 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f3f20 reply ok 120 access attr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143355603.000000 1143292140.000000 1143292140.000000 c 0001 (ttl 63, id 19309, len 148) 15:54:40.195200 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f3fcb 96 getattr fh Unknown/1 (ttl 64, id 983, len 124) 15:54:40.197062 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f3fcb reply ok 112 getattr DIR 755 ids 501/501 sz 0x400 (ttl 63, id 19313, len 140) 15:54:40.197153 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f3fee 116 readdir fh Unknown/1 8192 bytes @ 0x0 verf 0000000000000000 (ttl 64, id 11038, len 144) 15:54:40.200048 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f3fee reply ok 336 readdir POST: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 verf 442547bb6577d486 (ttl 63, id 19317, len 364) 15:54:40.200179 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4003 104 lookup fh Unknown/1 "home" (ttl 64, id 28883, len 132) 15:54:40.202151 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4003 reply ok 232 lookup fh Unknown/1 DIR 755 ids 0/501 sz 0x400 nlink 3 rdev 14/10347380 fsid 0xe000006 fileid 0x38dcae0 a/m/ctime 1143355789.000000 1143325036.000000 1143325036.000000 post dattr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 (ttl 63, id 19320, len 260) 15:54:41.854262 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4039 100 access fh Unknown/1 0002 (ttl 64, id 8604, len 128) 15:54:41.856026 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4039 reply ok 120 access attr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 c 0002 (ttl 63, id 20703, len 148) 15:54:41.856278 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f403b 100 access fh Unknown/1 0002 (ttl 64, id 2017, len 128) 15:54:41.858000 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f403b reply ok 120 access attr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 c 0002 (ttl 63, id 20705, len 148) 15:54:41.858050 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4083 100 access fh Unknown/1 0001 (ttl 64, id 29459, len 128) 15:54:41.859985 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4083 reply ok 120 access attr: DIR 755 ids 0/501 sz 0x400 nlink 3 rdev 14/10347380 fsid 0xe000006 fileid 0x38dcae0 a/m/ctime 1143355789.000000 1143325036.000000 1143325036.000000 c 0001 (ttl 63, id 20710, len 148) 15:54:41.860035 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f40e9 96 getattr fh Unknown/1 (ttl 64, id 17806, len 124) 15:54:41.861966 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f40e9 reply ok 112 getattr DIR 755 ids 0/501 sz 0x400 (ttl 63, id 20713, len 140) 15:54:41.862264 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f40ff 116 readdir fh Unknown/1 8192 bytes @ 0x0 verf 0000000000000000 (ttl 64, id 23764, len 144) 15:54:41.870649 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f40ff reply ok 216 readdir POST: DIR 755 ids 0/501 sz 0x400 nlink 3 rdev 14/10347380 fsid 0xe000006 fileid 0x38dcae0 a/m/ctime 1143356081.000000 1143325036.000000 1143325036.000000 verf 442547c6b7c0a59a (ttl 63, id 20718, len 244) 15:54:45.154168 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4196 100 access fh Unknown/1 0002 (ttl 64, id 16780, len 128) 15:54:45.155938 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4196 reply ok 120 access attr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 c 0002 (ttl 63, id 23843, len 148) 15:54:45.156063 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4200 104 lookup fh Unknown/1 "itoj" (ttl 64, id 22147, len 132) 15:54:45.157909 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4200 reply ok 116 lookup ERROR: No such file or directory post dattr: DIR 755 ids 0/501 sz 0x400 nlink 3 rdev 14/10347380 fsid 0xe000006 fileid 0x38dcae0 a/m/ctime 1143356081.000000 1143325036.000000 1143325036.000000 (ttl 63, id 23846, len 144) 15:54:45.157974 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f42ee 100 access fh Unknown/1 0002 (ttl 64, id 2391, len 128) 15:54:45.159861 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f42ee reply ok 120 access attr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 c 0002 (ttl 63, id 23850, len 148) 15:54:45.159904 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4355 100 access fh Unknown/1 0002 (ttl 64, id 2022, len 128) 15:54:45.161850 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4355 reply ok 120 access attr: DIR 755 ids 0/501 sz 0x400 nlink 3 rdev 14/10347380 fsid 0xe000006 fileid 0x38dcae0 a/m/ctime 1143356081.000000 1143325036.000000 1143325036.000000 c 0002 (ttl 63, id 23852, len 148) 15:54:46.914140 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4402 100 access fh Unknown/1 0002 (ttl 64, id 23060, len 128) 15:54:46.915834 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4402 reply ok 120 access attr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 c 0002 (ttl 63, id 25568, len 148) 15:54:46.915958 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4493 108 lookup fh Unknown/1 "itojun" (ttl 64, id 30863, len 136) 15:54:46.917923 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4493 reply ok 232 lookup fh Unknown/1 DIR 755 ids 1001/0 sz 0x400 nlink 22 rdev 14/10347381 fsid 0xe000006 fileid 0x38dcae1 a/m/ctime 1143328783.000000 1143352981.000000 1143352981.000000 post dattr: DIR 755 ids 0/501 sz 0x400 nlink 3 rdev 14/10347380 fsid 0xe000006 fileid 0x38dcae0 a/m/ctime 1143356081.000000 1143325036.000000 1143325036.000000 (ttl 63, id 25570, len 260) 15:54:46.918142 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f4517 100 access fh Unknown/1 0002 (ttl 64, id 10189, len 128) 15:54:46.919796 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f4517 reply ok 120 access attr: DIR 755 ids 501/501 sz 0x400 nlink 5 rdev 0/1396 fsid 0xe000006 fileid 0x2 a/m/ctime 1143356080.000000 1143292140.000000 1143292140.000000 c 0002 (ttl 63, id 25575, len 148) 15:54:46.919842 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f45ea 100 access fh Unknown/1 0002 (ttl 64, id 8857, len 128) 15:54:46.921782 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f45ea reply ok 120 access attr: DIR 755 ids 0/501 sz 0x400 nlink 3 rdev 14/10347380 fsid 0xe000006 fileid 0x38dcae0 a/m/ctime 1143356081.000000 1143325036.000000 1143325036.000000 c 0002 (ttl 63, id 25577, len 148) 15:54:46.921823 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f46e3 100 access fh Unknown/1 0001 (ttl 64, id 22951, len 128) 15:54:46.923834 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f46e3 reply ok 120 access attr: DIR 755 ids 1001/0 sz 0x400 nlink 22 rdev 14/10347381 fsid 0xe000006 fileid 0x38dcae1 a/m/ctime 1143328783.000000 1143352981.000000 1143352981.000000 c 0001 (ttl 63, id 25580, len 148) 15:54:46.923893 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f47a9 96 getattr fh Unknown/1 (ttl 64, id 7953, len 124) 15:54:46.925814 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f47a9 reply ok 112 getattr DIR 755 ids 1001/0 sz 0x400 (ttl 63, id 25583, len 140) 15:54:46.926055 202.232.15.94.660 > 221.249.121.226.2049: xid 0x789f482b 116 readdir fh Unknown/1 8192 bytes @ 0x0 verf 0000000000000000 (ttl 64, id 14236, len 144) 15:54:46.929493 221.249.121.226.2049 > 202.232.15.94.660: xid 0x789f482b reply ok 812 readdir POST: DIR 755 ids 1001/0 sz 0x400 nlink 22 rdev 14/10347381 fsid 0xe000006 fileid 0x38dcae1 a/m/ctime 1143356086.000000 1143352981.000000 1143352981.000000 verf 4425c16c97ba4d7f (ttl 63, id 25588, len 840) 15:54:54.204634 202.232.15.94.806 > 221.249.121.226.111: [udp sum ok] udp 56 (ttl 64, id 16311, len 84) 15:54:54.230299 221.249.121.226.111 > 202.232.15.94.806: [udp sum ok] udp 28 (ttl 63, id 31310, len 56) 15:54:54.230520 202.232.15.94.729 > 221.249.121.226.989: [udp sum ok] udp 128 (ttl 64, id 15822, len 156) 15:54:54.232414 221.249.121.226.989 > 202.232.15.94.729: [udp sum ok] udp 24 (ttl 63, id 31311, len 52) 132 packets received by filter 0 packets dropped by kernel |