Subject: kern/14041: file writing over NFS is broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kay@kaynet.or.jp>
List: netbsd-bugs
Date: 09/22/2001 13:43:23
>Number:         14041
>Category:       kern
>Synopsis:       wrote a file over NFS, the file contents replace '^@' character
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 21 21:44:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Keisuke YOSHIDA
>Release:        cvsupped 2001-09-21 18:00 JST
>Organization:
KAYNET
>Environment:
System: NetBSD layna.kaynet.or.jp 1.5Y NetBSD 1.5Y (LAYNA) #0: Sat Sep 22 00:18:09 JST 2001 root@layna.kaynet.or.jp:/usr/src/sys/arch/i386/compile/LAYNA i386
Architecture: i386
Machine: i386
>Description:

 I'm using vm-5.97 on mule-2.3 (MUlti-Lingual Emacs based on 19.28). When I saved inbox on NFS server, the file is broken like attached one.

--[[application/octet-stream
Content-Disposition: attachment; filename="crashed inbox"][base64]]
RnJvbSB0ZWNoLXVzZXJsZXZlbC1vd25lci1rYXk9a2F5bmV0Lm9yLmpwQG5ldGJzZC5vcmcg
U2F0IFNlcCAyMiAxMTo0Nzo1MiAyMDAxClgtVk0tTGFiZWxzOiBuaWwKWC1WTS1WSGVhZGVy
OiAoIlJlc2VudC0iICJGcm9tOiIgIlNlbmRlcjoiICJUbzoiICJBcHBhcmVudGx5LVRvOiIg
IkNjOiIgIlN1YmplY3Q6IiAiRGF0ZToiICJNZXNzYWdlLUlkOiIgIlNlcmlhbC1ObzoiKSBu
aWwKWC1WTS1Cb29rbWFyazogMQpTdGF0dXM6IFJPClgtVk0tdjUtRGF0YTogKFtuaWwgbmls
IG5pbCBuaWwgbmlsIG5pbCBuaWwgbmlsIG5pbF0KCVsiMTY3MSIgIlNhdCIgIjIyIiAiU2Vw
dGVtYmVyIiAiMjAwMSIgIjExOjQ3OjUyIiBuaWwgInRlY2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copying very small file by cp is work fine, but large file is not checked.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: