]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: set the flags fields of fuse_write_in and fuse_read_in
authorasomers <asomers@FreeBSD.org>
Tue, 28 May 2019 01:09:19 +0000 (01:09 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 28 May 2019 01:09:19 +0000 (01:09 +0000)
commit9db3538517d15c4dc39cda852e0f9a70a1e87cfa
treed35f82f0f4253c66f71f65f99ef96cd3963e9ba5
parent5df1cc70442c7b2b575d20f869980a861ecda214
fusefs: set the flags fields of fuse_write_in and fuse_read_in

These fields are supposed to contain the file descriptor flags as supplied
to open(2) or set by fcntl(2).  The feature is kindof useless on FreeBSD
since we don't supply all of these flags to fuse (because of the weak
relationship between struct file and struct vnode).  But we should at least
set the access mode flags (O_RDONLY, etc).

This is the last fusefs change needed to get full protocol 7.9 support.
There are still a few options we don't support for good reason (mandatory
file locking is dumb, flock support is broken in the protocol until 7.17,
etc), but there's nothing else to do at this protocol level.

Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_file.c
sys/fs/fuse/fuse_file.h
sys/fs/fuse/fuse_internal.c
sys/fs/fuse/fuse_io.c
tests/sys/fs/fusefs/mockfs.cc
tests/sys/fs/fusefs/utils.cc
tests/sys/fs/fusefs/utils.hh
tests/sys/fs/fusefs/write.cc