opnsense-src/sys
Rick Macklem c18c74a87c namei: Add cn_flags bits for OPENREAD and OPENWRITE
VOP_LOOKUP() is called with cn_flags bits ISLASTCN and ISOPEN
to indicate that the lookup is for the last component of a pathname
when doing open.

If the cn_flags also indicates if the open is for Reading, Writing or Both,
the NFSv4 client can do an NFSv4 Open operation in the same compound
RPC as Lookup, often avoiding the additional Open RPC now done when
VOP_OPEN() is called.

This patch defines two new cn_flags bits called OPENREAD and OPENWRITE
and sets these in open2nameif() based on FREAD, FWRITE flag bits.
This will allow a subsequent patch to the NFSv4 client to do the Open
operation in the same RPC as Lookup.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D31431
2021-08-06 18:41:11 -07:00
..
amd64 vmm: Bump vmname buffer in struct vm to VM_MAX_NAMELEN + 1 2021-08-02 17:55:08 +08:00
arm Revert "arm: remove fslsdma from GENERIC" 2021-08-03 20:10:32 -06:00
arm64 arm64: conf: std.broadcom: Add dwcotg and smsc 2021-08-05 13:16:23 +02:00
bsm Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
cam iSCSI: Add support for segmentation offload for hardware offloads. 2021-08-06 14:03:00 -07:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-02 17:49:13 -04:00
compat Regen after 0dc332bff2 2021-08-05 23:22:02 +08:00
conf arm: enable stack-smashing protection 2021-08-04 15:23:22 -03:00
contrib acpica: Import ACPICA 20210730 2021-07-31 00:16:27 -04:00
crypto crypto: Constify all transform descriptors 2021-07-26 16:41:05 -04:00
ddb fix style nit: space after if 2021-05-05 15:26:09 -06:00
dev cxgbei: Support for ISO (iSCSI segmentation offload). 2021-08-06 14:21:37 -07:00
dts arm64: allwinner: dtbo: Add dtb overlays to disable mmc node 2021-07-24 22:53:33 +02:00
fs nfscl: Cache an open stateid for the "oneopenown" mount option 2021-07-28 15:48:27 -07:00
gdb gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
geom geom_vfs: Pre-allocate event for g_vfs_destroy. 2021-07-29 17:09:23 -07:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 xen/timer: fix amd64 LINT kernel build 2021-08-02 10:33:35 +02:00
isa newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
kern namei: Add cn_flags bits for OPENREAD and OPENWRITE 2021-08-06 18:41:11 -07:00
kgssapi opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
libkern Switch to an ifunc in the kernel for crc32c 2021-07-22 20:54:21 +00:00
mips Add pmap_vm_page_alloc_check() 2021-07-31 16:53:42 +03:00
modules modules: felix: Add needed dependencies 2021-08-06 15:21:31 +02:00
net [lltable] Unify datapath feedback mechamism. 2021-08-04 22:52:43 +00:00
net80211 net80211: ieee80211_probereq_ie fix length calculation for hw scans 2021-06-28 12:17:11 +00:00
netgraph socket: Implement SO_RERROR 2021-07-28 09:35:09 -07:00
netinet Update the TCP LRO code to handle both encrypted and un-encrypted traffic. 2021-08-06 11:28:44 +02:00
netinet6 Fix panic in IPv6 multicast code. 2021-08-06 12:57:59 +03:00
netipsec socket: Implement SO_RERROR 2021-07-28 09:35:09 -07:00
netpfil pf: bound DIOCGETSTATES memory use 2021-08-02 16:29:23 +02:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-05-26 10:45:40 -04:00
nfs Fix panic when using BOOTP to resolve root path. 2021-03-28 14:02:40 -05:00
nfsclient nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nfsserver nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nlm nlm: clean up empty lines in .c and .h files 2020-09-01 22:14:52 +00:00
ofed ibcore: Kernel space update based on Linux 5.7-rc1. 2021-07-28 13:28:29 +02:00
opencrypto crypto: Constify all transform descriptors 2021-07-26 16:41:05 -04:00
powerpc Add pmap_vm_page_alloc_check() 2021-07-31 16:53:42 +03:00
riscv Add pmap_vm_page_alloc_check() 2021-07-31 16:53:42 +03:00
rpc Consistently use the SOLISTENING() macro 2021-06-14 17:32:27 -04:00
security Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
sys namei: Add cn_flags bits for OPENREAD and OPENWRITE 2021-08-06 18:41:11 -07:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests tests: Revise FIB lookups per second benchmarking routines 2021-06-17 08:49:09 +02:00
tools booti: Enable loading the kernel image to any address aligned to 2 MB 2021-07-28 13:42:13 +02:00
ufs Clean up orphaned indirdep dependency structures after disk failure. 2021-07-29 16:31:16 -07:00
vm Add vnode_pager_purge_range(9) KPI 2021-08-05 22:52:26 +08:00
x86 x86_msr_op: extend the KPI to allow MSR read and single-CPU operations 2021-08-05 18:46:37 +03:00
xdr xdr: clean up empty lines in .c and .h files 2020-09-01 22:13:28 +00:00
xen xen: introduce xen_pv_disks_disabled() 2021-07-28 17:27:04 +02:00
Makefile