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
..
2009-10-27 11:01:15 +00:00
2010-02-27 15:26:36 +00:00
2010-03-11 15:13:55 +00:00
2010-01-07 01:24:09 +00:00
2010-02-03 08:42:08 +00:00
2010-02-18 05:49:52 +00:00
2010-01-04 12:39:42 +00:00
2010-02-07 18:00:13 +00:00
2009-10-27 11:01:15 +00:00
2009-10-27 11:01:15 +00:00
2010-01-04 20:59:52 +00:00
2010-01-04 20:59:52 +00:00
2009-05-26 09:19:21 +00:00
2010-04-04 14:48:43 +00:00