freebsd-dev/sys/fs
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
..
autofs kernel: use our nitems() macro when it is available through param.h. 2016-04-19 23:48:27 +00:00
cd9660 fs misc: for pointers replace 0 with NULL. 2016-04-15 17:28:24 +00:00
cuse Make CUSE usable with platforms where the size of "unsigned long" is 2015-12-22 09:55:44 +00:00
deadfs Style changes for deadfs: 2014-10-15 13:22:33 +00:00
devfs sys/devfs: unsign an index to prevent signed integer overflow. 2016-04-28 02:39:43 +00:00
ext2fs fs/ext2fs: spelling fixes on comment. 2016-04-29 20:45:50 +00:00
fdescfs Rationalize license numbering in fdescfs(5) 2016-04-30 16:01:37 +00:00
fifofs Ensure that when a blockable open of fifo returns success, a valid 2015-09-20 21:18:33 +00:00
fuse Fix fuse for "cp" of a mode 0444 file to the file system. 2016-05-15 23:15:10 +00:00
msdosfs sys/fs: spelling fixes in comments. 2016-04-29 20:51:24 +00:00
nandfs sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
nfs Add nid_namelen bounds check to nfssvc system call 2016-05-06 21:19:28 +00:00
nfsclient Make it possible to reroot into NFS. This means one can have 2016-05-15 08:34:59 +00:00
nfsserver nfsd: Fix use-after-free in NFS4 lock test service 2016-05-12 05:03:12 +00:00
nullfs sys/fs: spelling fixes in comments. 2016-04-29 20:51:24 +00:00
procfs - Consistently use PROC_ASSERT_HELD() to verify that a process' hold count 2015-11-08 01:38:56 +00:00
pseudofs Do not perform unneccessary shared recursion on the allproc_lock in 2016-03-11 11:51:38 +00:00
smbfs sys/fs: spelling fixes in comments. 2016-04-29 20:51:24 +00:00
tmpfs sys/fs: spelling fixes in comments. 2016-04-29 20:51:24 +00:00
udf sys/fs: spelling fixes in comments. 2016-04-29 20:51:24 +00:00
unionfs Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00