freebsd-dev/sys/ufs
Kirk McKusick e6796b67d9 Move the truncation code out of vn_open and into the open system call
after the acquisition of any advisory locks. This fix corrects a case
in which a process tries to open a file with a non-blocking exclusive
lock. Even if it fails to get the lock it would still truncate the
file even though its open failed. With this change, the truncation
is done only after the lock is successfully acquired.

Obtained from:	 BSD/OS
2000-07-04 03:34:11 +00:00
..
ffs Make the two calls from kern/* into softupdates #ifdef SOFTUPDATES, 2000-07-03 13:26:54 +00:00
mfs Separate the struct bio related stuff out of <sys/buf.h> into 2000-05-05 09:59:14 +00:00
ufs Move the truncation code out of vn_open and into the open system call 2000-07-04 03:34:11 +00:00