freebsd-nq/sys
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
..
amd64 Eliminate pvh_global_lock from the amd64 pmap. 2016-05-14 23:35:11 +00:00
arm Add Allwinner A83T thermal sensor controller support. 2016-05-15 22:36:55 +00:00
arm64 Add support to the arm64 busdma to handle the cache. For now this is 2016-05-13 16:03:50 +00:00
boot Add Allwinner A83T thermal sensor controller support. 2016-05-15 22:36:55 +00:00
bsm
cam opt_kdtrace.h is not needed for SDT probes as of r258541. 2016-05-15 20:04:43 +00:00
cddl Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
compat Handle case of class being set, but not parent when calling 2016-05-13 13:01:02 +00:00
conf [bwn] add in the new phy common and utils files. 2016-05-14 23:08:34 +00:00
contrib Make subsequent code reachable. 2016-05-15 22:35:11 +00:00
crypto aesni(4): Initialize error before use 2016-04-20 03:05:32 +00:00
ddb Revert r298938: Change x/a to work similar to gdb. 2016-05-06 20:28:28 +00:00
dev OFWIICBUS: Make ofwiicbus_devclass externaly visible. 2016-05-15 15:13:56 +00:00
fs Fix fuse for "cp" of a mode 0444 file to the file system. 2016-05-15 23:15:10 +00:00
gdb
geom Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
gnu Change OpenWRT imported dtsi files 2016-04-20 14:29:03 +00:00
i386 Add a new bus method to fetch device-specific CPU sets. 2016-05-09 20:50:21 +00:00
isa sys/isa: minor spelling fixes. 2016-05-03 21:51:52 +00:00
kern Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
kgssapi kgssapi: insignificant spelling fix. 2016-05-03 22:05:03 +00:00
libkern sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
mips Use OF_prop_free instead of direct call to free(9) 2016-05-14 20:05:35 +00:00
modules opt_kdtrace.h is not needed for SDT probes as of r258541. 2016-05-15 20:04:43 +00:00
net When handling SIOCSIFNAME ensure that the new interface name is NUL 2016-05-15 21:37:36 +00:00
net80211 Revert parts of r299575 in order to make more MIPS kernels build 2016-05-14 08:54:34 +00:00
netgraph sys/netgraph: spelling fixes in comments. 2016-04-29 21:25:05 +00:00
netinet opt_kdtrace.h is not needed for SDT probes as of r258541. 2016-05-15 20:04:43 +00:00
netinet6 Use Node Information flag names instead of hard-coding their values. 2016-05-15 03:22:13 +00:00
netipsec netipsec: Fix minor style nit 2016-05-10 20:14:11 +00:00
netnatm kernel: use our nitems() macro when it is available through param.h. 2016-04-19 23:48:27 +00:00
netpfil Fix memory leak possible in error case. 2016-05-11 10:04:32 +00:00
netsmb sys/net*: minor spelling fixes. 2016-05-03 18:05:43 +00:00
nfs NFS: spelling fixes on comments. 2016-04-29 16:07:25 +00:00
nfsclient
nfsserver
nlm Remove slightly used const values that can be replaced with nitems(). 2016-04-21 15:38:28 +00:00
ofed sys/ofed: minor spelling fix. 2016-05-06 15:37:06 +00:00
opencrypto sys/opencrypto: minor spelling fixes. 2016-05-06 23:37:19 +00:00
pc98 Move 'device pci' for the PCI bus driver to the MI NOTES file. 2016-04-29 23:53:55 +00:00
powerpc Use OF_prop_free instead of direct call to free(9) 2016-05-14 20:06:38 +00:00
riscv Eliminate an unused #include. For a brief period of time, _unrhdr.h was 2016-05-13 20:14:41 +00:00
rpc sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
security sys/security: minor spelling fixes. 2016-05-06 16:59:04 +00:00
sparc64 sys/sparc64: minor spelling fixes. 2016-05-04 15:52:40 +00:00
sys Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
teken
tests
tools
ufs UFS: spelling fixes on comments. 2016-04-29 20:43:51 +00:00
vm Move vm_domain_rr_selectdomain() under #ifdef VM_NUMA_ALLOC. 2016-05-10 22:25:55 +00:00
x86 Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
xdr RPC: for pointers replace 0 with NULL. 2016-04-14 17:06:37 +00:00
xen
Makefile Add riscv to the list of architectures for cscope. 2016-02-29 16:39:27 +00:00