NFS writes

Tim Waugh (tmw20@cam.ac.uk)
Fri, 23 May 1997 19:01:37 +0100 (BST)


Hi,

There seems to be a problem with NFS write requests that I'm guessing is
to do with word size.

I just ran tcpdump while doing the following (alces is an Alpha, cyberelk
an Intel):

[tim@alces tim]$ echo hello > /nfs/home/tmw20/file
[tmw20@cyberelk tmw20]$ echo hello > /nfs/home/tim/file

The write request from the Alpha shows the problem:
15:34:59.411856 alces.elk.co.uk.63a30a03 > cyberelk.elk.co.uk.nfs: 188 write fh Unknown/1 0 (0) bytes @ 6 (6)

... compared with the equivalent one from the PC:
15:36:27.795322 cyberelk.elk.co.uk.a7ea4000 > alces.elk.co.uk.nfs: 198 write fh Unknown/1 6 (6) bytes @ 0 (0)

The PC is writing 6 bytes at offset 0, while the Alpha is trying to write
0 bytes at offset 6. The result is that file created over NFS from the
Alpha always end up zero length.

Tim.
*/