Date: Thu, 8 Jul 2010 11:03:18 +0300 From: Eugene Perevyazko <john@dnepro.net> To: freebsd-net@freebsd.org Subject: Re: kern/123095 kern/131602 sendfile Message-ID: <20100708080318.GA12687@traktor.dnepro.net> In-Reply-To: <7C3D15DD6E8F464998CA1470D8A322F302BB9F72@ES02CO.wgti.net> References: <7C3D15DD6E8F464998CA1470D8A322F302BB9F72@ES02CO.wgti.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 07, 2010 at 10:24:41AM -0700, Ming Fu wrote: > Hi, > > > I was trying to use sendfile and hit with problem very similar to the > 123095 and 131602. > It seems that when the file is large enough (in megs), the file can be > corrupted even if it is open read-only and exist on disk as read-only > file, though the filesystem is mounted read-write. > [skipped] > > I run this on 8.0-RELEASE. The same happens on 7.2 and 6.3. The disk are > SATA ide. I run all these command under unprivileged user account. I > also run the same program on several different hardware, the result is > the same. Although the corrupted file is not the same. The corruption > looks random to me. > I have this problem on 7.2-S for pretty long time. But as I sendfile() very small file (several hundred bytes) from flash I was blaming faulty flash stick. I've even made a crontab entry to replace corrupted file. So the problem seems to be probabilistic, depending on amount of transferred data. -- Eugene Perevyazko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100708080318.GA12687>