kern/68690: write(2) returns wrong vlalue when EFAULT
KOIE Hidetaka (鯉江英隆＠数理技研)
koie at suri.co.jp
Wed Jul 7 20:10:06 PDT 2004
The following reply was made to PR kern/68690; it has been noted by GNATS.
From: KOIE Hidetaka (=?iso-2022-jp?B?GyRCOHE5PjFRTjQhdz90TX01OzgmGyhC?=) <koie at suri.co.jp>
To: bde at zeta.org.au
Cc: freebsd-gnats-submit at FreeBSD.org, freebsd-bugs at FreeBSD.org
Subject: Re: kern/68690: write(2) returns wrong vlalue when EFAULT
Date: Thu, 08 Jul 2004 12:07:56 +0900 (JST)
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:
| write(20480)->-1 (should be 12288)
| write: Bad address
| pos=0 (should be 12288)
I was unaware of examining on NFS.
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