freebsd-dev/sys/fs/fuse
Rick Macklem e6e2445622 Fix fuse for "cp" of a mode 0444 file to the file system.
When "cp" of a file with read-only (mode 0444) to a fuse mounted
file system was attempted it would fail with EACCES. This was because
fuse would attempt to open the file WRONLY and the open would fail.
This patch changes the fuse_vnop_open() to test for an extant read-write
open and use that, if it is available.
This makes the "cp" of a read-only file to the fuse mounted file system
work ok.
There are simpler ways to fix this than adding the fuse_filehandle_validrw()
function, but this function is useful for future patches related to
exporting a fuse filesystem via NFS.

MFC after:	2 weeks
2016-05-15 23:15:10 +00:00
..
fuse_debug.h
fuse_device.c Remove unneeded D_NEEDMINOR. 2012-10-18 19:28:31 +00:00
fuse_file.c Fix fuse for "cp" of a mode 0444 file to the file system. 2016-05-15 23:15:10 +00:00
fuse_file.h Fix fuse for "cp" of a mode 0444 file to the file system. 2016-05-15 23:15:10 +00:00
fuse_internal.c - Current caching mode is completely broken because it simply relies 2012-11-08 00:32:49 +00:00
fuse_internal.h fuse: revert birthtime support. 2013-07-20 14:50:35 +00:00
fuse_io.c sys/fs: spelling fixes in comments. 2016-04-29 20:51:24 +00:00
fuse_io.h
fuse_ipc.c
fuse_ipc.h
fuse_kernel.h fuse: revert kernel_header update. 2013-07-24 20:21:29 +00:00
fuse_main.c Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
fuse_node.c Fix fuse so that stale buffer cache data isn't read. 2016-05-15 00:45:17 +00:00
fuse_node.h Make fuse(4) respect FOPEN_DIRECT_IO. This is required for correct 2015-03-02 19:04:27 +00:00
fuse_param.h
fuse_vfsops.c File systems that do not use the buffer cache (such as ZFS) must 2015-04-15 20:16:31 +00:00
fuse_vnops.c Fix fuse for "cp" of a mode 0444 file to the file system. 2016-05-15 23:15:10 +00:00
fuse.h