aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.vagrant
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-02-09 23:35:57 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-02-09 23:35:57 +0000
commit7903b00087edb0a0dffeabb04e351c5fa67c5a23 (patch)
tree68b60b1f48d3f43d3a5e881ef611d51e79abb6b8 /release/Makefile.vagrant
parent6d20836aa7f6ac73c95f2fd895a586b3376a5de6 (diff)
downloadsrc-7903b00087edb0a0dffeabb04e351c5fa67c5a23.tar.gz
src-7903b00087edb0a0dffeabb04e351c5fa67c5a23.zip
Do not establish advisory locks when doing open(O_EXLOCK) or open(O_SHLOCK)
for files which do not have DTYPE_VNODE type. Both flock(2) and fcntl(2) syscalls refuse to acquire advisory lock on a file which type is not DTYPE_VNODE. Do the same when lock is requested from open(2). Restructure the block in vn_open_vnode() which handles O_EXLOCK and O_SHLOCK open flags to make it easier to quit its execution earlier with an error. Tested by: pho (previous version) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=313495
Diffstat (limited to 'release/Makefile.vagrant')
0 files changed, 0 insertions, 0 deletions