diff options
author | kib <kib@FreeBSD.org> | 2010-04-13 08:52:20 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-04-13 08:52:20 +0000 |
commit | bf84540647fc1be184bf41e391a3ef7d015f2397 (patch) | |
tree | d1bc352b19f5d267fa971fec890107ea62f73a1e /lib/libc/stdlib/labs.c | |
parent | d5f342f2daa0632a7ce5dc14cc5bc84bea1b8a16 (diff) | |
download | FreeBSD-src-bf84540647fc1be184bf41e391a3ef7d015f2397.zip FreeBSD-src-bf84540647fc1be184bf41e391a3ef7d015f2397.tar.gz |
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
Diffstat (limited to 'lib/libc/stdlib/labs.c')
0 files changed, 0 insertions, 0 deletions