Date: Tue, 13 Apr 2010 08:52:20 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_syscalls.c Message-ID: <201004130852.o3D8qZEL004666@repoman.freebsd.org>
index | next in thread | raw e-mail
kib 2010-04-13 08:52:20 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_syscalls.c
Log:
SVN rev 206547 on 2010-04-13 08:52:20Z by kib
Handle a case in kern_openat() when vn_open() change file type from
DTYPE_VNODE.
Only acquire locks for O_EXLOCK/O_SHLOCK if file type is still vnode,
since we allow for fcntl(2) to process with advisory locks for
DTYPE_VNODE only. Another reason is that all fo_close() routines need to
check and release locks otherwise.
For O_TRUNC, call fo_truncate() instead of truncating the vnode.
Discussed with: rwatson
MFC after: 2 week
Revision Changes Path
1.498 +2 -15 src/sys/kern/vfs_syscalls.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004130852.o3D8qZEL004666>
