kern/68690: write(2) returns wrong vlalue when EFAULT
KOIE Hidetaka (鯉江英隆@数理技研)
koie at suri.co.jp
Wed Jul 7 20:08:00 PDT 2004
Thanks for your inspection.
Message-Id: <20040707172014.C3185 at gamplex.bde.org>
Date: Wed, 7 Jul 2004 18:23:57 +1000 (EST)
From: Bruce Evans <bde at zeta.org.au>
Subject: Re: kern/68690: write(2) returns wrong vlalue when EFAUL..
| Do you actually see the file pointer advanced? This may be file system
| dependent. ffs is supposed to back out of the write, and it does so
| for me. Output:
|
| %%%
| pos=0
| write(20480)->-1 (should be 12288)
| write: Bad address
| pos=0 (should be 12288)
| %%%
I was unaware of examining on NFS.
%%%
pos=0
write(20480)->-1 (should be 12288)
write: Bad address
pos=8192 (should be 12288)
%%%
The file pointer is not backed.
| > >Fix:
I understand some problems exist.
--
KOIE Hidetaka / koie at suri.co.jp / SURIGIKEN Co.,LTD.
More information about the freebsd-bugs
mailing list