I just ran the connectathon locking tests from Sparc/Solaris 2.7 and
Alpha Tru64 (aka OSF/1) 4.0F against an x86 running a fairly recent
rev of current (last week's kernel).
For a pointer to the tests, see http://www.connectathon.org/nfstests.html
Sun:
<4:17pm>cold/gallatin:/mnt>/home/home1/gallatin/ari/cthon00/lock/tlocklfs
Creating parent/child synchronization pipes.
Test #1 - Test regions of an unlocked file.
Parent: 1.1 - F_TEST [ 0, 1] PASSED.
Parent: 1.2 - F_TEST [ 0, ENDING] PASSED.
Parent: 1.3 - F_TEST [ 0,7fffffff] FAILED!
Parent: **** Expected success, returned EAGAIN...
Parent: **** Probably implementation error.
** PARENT pass 1 results: 2/2 pass, 0/0 warn, 1/1 fail (pass/total).
** CHILD pass 1 results: 0/0 pass, 0/0 warn, 0/0 fail (pass/total).
OSF/1:
<4:30pm>gale/gallatin:/mnt>~/ari/cthon00/lock/tlocklfs
Creating parent/child synchronization pipes.
Test #1 - Test regions of an unlocked file.
<HANG>
>From strace:
open("./lockfile3236", O_RDWR|O_CREAT|O_SYNC, 0666) = 7
write(1, "\nTest #1 - Test regions of an u"..., 44
Test #1 - Test regions of an unlocked file.) = 44
write(1, "\n", 1
) = 1
fcntl(7, F_GETLK <unfinished ...>
The alpha seems to be stuck in a loop or something, it keeps trying to
talk to lockd, even after I unmount the filesystem:
<4:49pm>sausage/gallatin:/dev#tcpdump -s 512 -vv host gale
tcpdump: listening on fxp0
16:49:24.480566 gale.cs.duke.edu.829 > sausage.cs.duke.edu.sunrpc: udp 56 (ttl 30, id
21617)
16:49:24.480827 sausage.cs.duke.edu.sunrpc > gale.cs.duke.edu.829: udp 28 (ttl 64, id
44400)
16:49:24.481242 gale.cs.duke.edu.1021 > sausage.cs.duke.edu.lockd: udp 152 (ttl 30, id
21618)
16:49:24.482481 gale.cs.duke.edu.830 > sausage.cs.duke.edu.sunrpc: udp 56 (ttl 30, id
21620)
16:49:24.482726 sausage.cs.duke.edu.sunrpc > gale.cs.duke.edu.830: udp 28 (ttl 64, id
44402)
16:49:24.482793 sausage.cs.duke.edu.904 > gale.cs.duke.edu.sunrpc: udp 56 (ttl 64, id
44403)
16:49:24.483174 gale.cs.duke.edu.1021 > sausage.cs.duke.edu.lockd: udp 152 (ttl 30, id
21621)
<...>
Lockd comaplains:
Feb 12 16:54:10 rpc.lockd[8423]: Cannot stat filehandle: Stale NFS file handle
If I can be of more use, let me know.
Drew
------------------------------------------------------------------------------
Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin
Duke University Email: [EMAIL PROTECTED]
Department of Computer Science Phone: (919) 660-6590
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message