Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Chuck Silvers <chs@netbsd.org>
List: source-changes
Date: 01/08/2001 09:05:48
Module Name: syssrc
Committed By: chs
Date: Mon Jan 8 07:05:48 UTC 2001
Modified Files:
syssrc/sys/kern: vfs_subr.c
Log Message:
in vtruncbuf(), use a "synchronous freeing" flush to prevent a race
between write i/os in a disk-based filesystem vs. the disk block being
freed by a truncation, allocated to a new file, and written again with
different data. if the disk driver reorders the requests and does
the second i/o first, the old data will clobber the new, corrupting
the new file.
To generate a diff of this commit:
cvs rdiff -r1.143 -r1.144 syssrc/sys/kern/vfs_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.