diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-04-03 18:55:11 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-04-15 09:48:27 +0000 |
commit | a5970a529c2d952714f20e4bc6e529c74fd2b3b5 (patch) | |
tree | 3e02def33d5dab3f36911337f39f3930316015e1 /lib/libc | |
parent | 8d9ed174f3afba5f114742447e622fc1173d4774 (diff) | |
download | src-a5970a529c2d952714f20e4bc6e529c74fd2b3b5.tar.gz src-a5970a529c2d952714f20e4bc6e529c74fd2b3b5.zip |
Make files opened with O_PATH to not block non-forced unmount
by only keeping hold count on the vnode, instead of the use count.
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29323
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/open.2 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index f9c54bfc7581..06a877e34460 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -349,6 +349,9 @@ But operations like and any other that operate on file and not on file descriptor (except .Xr fstat 2 ), are not allowed. +File opened with the +.Dv O_PATH +flag does not prevent non-forced unmount of the volume it belongs to. See also the description of .Dv AT_EMPTY_PATH flag for |