kib bf84540647 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
2010-04-13 08:52:20 +00:00
..
2010-04-07 18:24:38 +00:00
2010-04-07 18:52:51 +00:00
2010-04-13 03:10:38 +00:00
2010-04-10 13:54:00 +00:00
2010-04-07 16:29:10 +00:00
2010-04-09 23:00:24 +00:00
2010-04-13 06:48:37 +00:00