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 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"