Page MenuHomeFreeBSD
Feed Advanced Search

Jul 11 2024

rmacklem committed rG7c2901b08b4e: mountd: Add options to disable daemon mode and setting localhost (authored by joyul_juniper.net).
mountd: Add options to disable daemon mode and setting localhost
Jul 11 2024, 7:41 PM

Jul 9 2024

rmacklem committed rGf7dc514c01d0: nfsd.8: Update the man page for -N (authored by joyul_juniper.net).
nfsd.8: Update the man page for -N
Jul 9 2024, 7:52 PM
rmacklem committed rG77439cd18f34: nfsd: Add option to disable going into daemon mode (authored by joyul_juniper.net).
nfsd: Add option to disable going into daemon mode
Jul 9 2024, 7:48 PM

Jul 7 2024

rmacklem committed rGdf3f247e4696: rpcbind.8: Update the man page for -I (authored by joyul_juniper.net).
rpcbind.8: Update the man page for -I
Jul 7 2024, 7:21 PM
rmacklem added a comment to D45118: Add options for mountd , nfsd and rpcbind.

No problem Ed. Hope you enjoyed your vacation.
The code changes are pretty straightforward. I left
them in the style consistent with the rest of the code.
(Using "int"s instead of "bool"s for example.)

Jul 7 2024, 2:39 AM

Jul 6 2024

rmacklem committed rGd8a99eaa1f06: rpcbind: Add option to disable local host binding (authored by joyul_juniper.net).
rpcbind: Add option to disable local host binding
Jul 6 2024, 8:43 PM
rmacklem closed D45118: Add options for mountd , nfsd and rpcbind.
Jul 6 2024, 8:42 PM
rmacklem accepted D45118: Add options for mountd , nfsd and rpcbind.

I have made the changes suggested by Alexander Ziaee to the
man pages, although I cannot update the diff here.

Jul 6 2024, 8:08 PM

Jul 5 2024

rmacklem committed rGcbf54cdb36cf: nfsd: Update a file missed by commit e2c9fad2e0ae (authored by rmacklem).
nfsd: Update a file missed by commit e2c9fad2e0ae
Jul 5 2024, 1:18 AM
rmacklem committed rG98c53b0b5540: nfsd: Fix delegation handled for atomic upgrade (authored by rmacklem).
nfsd: Fix delegation handled for atomic upgrade
Jul 5 2024, 1:15 AM

Jul 4 2024

rmacklem added a reviewer for D45118: Add options for mountd , nfsd and rpcbind: emaste.

Ed, maybe you can take a look at the source changes?
The man page changes have already been reviewed.
I can update those and I am willing to commit these
once you've taken a look at them.

Jul 4 2024, 1:37 AM

Jul 3 2024

rmacklem added a comment to D45814: Allow ZFS sharenfs to generate multiple export(5) lines.

If you are agreeable to my version of the length formula,
I will update the patch with that and checks for NULL
return for both strdup() and malloc().

Jul 3 2024, 8:23 PM
rmacklem added a comment to D45814: Allow ZFS sharenfs to generate multiple export(5) lines.

I did take a quick look at the Linux code and it
appears to be completely different to me, so I
don't think trying to convert it makes sense, at
least for now.

Jul 3 2024, 4:43 AM
rmacklem updated the diff for D45814: Allow ZFS sharenfs to generate multiple export(5) lines.

Used strdup() to copy the options into a malloc'd area,
as suggested by mav@. This makes sense, since a sharenfs
with many semicolons could be much larger than an
option list.

Jul 3 2024, 4:39 AM

Jul 1 2024

rmacklem updated the diff for D45814: Allow ZFS sharenfs to generate multiple export(5) lines.

This version ignores whitespace only semicolon separated
option sets. I decided that allowing the "only whitespace
case" which generates a line with default options (which
is read/write to the world) did not make sense when other
option sets are being specified for other hosts/networks.

Jul 1 2024, 10:15 PM

Jun 30 2024

rmacklem requested review of D45814: Allow ZFS sharenfs to generate multiple export(5) lines.
Jun 30 2024, 7:59 PM

Jun 23 2024

rmacklem committed rG67284d32e5e0: nfsd: Make modifying vfs.nfsd.enable_locallocks safe (authored by rmacklem).
nfsd: Make modifying vfs.nfsd.enable_locallocks safe
Jun 23 2024, 10:49 PM

Jun 22 2024

rmacklem committed rGdfaeeacc2cc2: nfsd: Allow a mutex lock for clientID handling (authored by rmacklem).
nfsd: Allow a mutex lock for clientID handling
Jun 22 2024, 10:58 PM
rmacklem committed rG85641d316a87: nfsd: Delete an unused VNET global variable (authored by rmacklem).
nfsd: Delete an unused VNET global variable
Jun 22 2024, 1:28 AM

Jun 21 2024

rmacklem committed rGa7de51068502: nfsd: Fix nfsrv_cleanclient so that it can be called with a mutex (authored by rmacklem).
nfsd: Fix nfsrv_cleanclient so that it can be called with a mutex
Jun 21 2024, 10:11 PM

Jun 12 2024

rmacklem committed rGbb53f071e85a: nfscl: Add support for read delegations and atomic upgrade (authored by rmacklem).
nfscl: Add support for read delegations and atomic upgrade
Jun 12 2024, 11:43 PM
rmacklem committed rG4308d6e0fc09: nfscl: Add a check for VREG for delegations (authored by rmacklem).
nfscl: Add a check for VREG for delegations
Jun 12 2024, 11:18 PM
rmacklem committed rGec1f285f2e63: nfscl: Add support for the NFSv4.1/4.2 WANT_xxx flags (authored by rmacklem).
nfscl: Add support for the NFSv4.1/4.2 WANT_xxx flags
Jun 12 2024, 11:13 PM

Jun 8 2024

rmacklem committed rG13a51233e4c7: nfsd: Delete an unused VNET global variable (authored by rmacklem).
nfsd: Delete an unused VNET global variable
Jun 8 2024, 11:42 PM

Jun 5 2024

rmacklem committed rGdbe7ff254e6c: nfsd: Update a file missed by commit e2c9fad2e0ae (authored by rmacklem).
nfsd: Update a file missed by commit e2c9fad2e0ae
Jun 5 2024, 1:58 AM
rmacklem committed rGe2c9fad2e0ae: nfsd: Fix delegation handled for atomic upgrade (authored by rmacklem).
nfsd: Fix delegation handled for atomic upgrade
Jun 5 2024, 1:50 AM

May 31 2024

rmacklem committed rG4c136aad80e6: svc.c: Check for a non-NULL xp_socket (authored by rmacklem).
svc.c: Check for a non-NULL xp_socket
May 31 2024, 10:37 PM

May 28 2024

rmacklem committed rG6c9170e0afc4: svc.c: Check for a non-NULL xp_socket (authored by rmacklem).
svc.c: Check for a non-NULL xp_socket
May 28 2024, 2:24 AM

May 26 2024

rmacklem committed rGc68db4608ef6: Revert "nfscl: Do not do readahead for directories" (authored by rmacklem).
Revert "nfscl: Do not do readahead for directories"
May 26 2024, 3:06 PM
rmacklem added a reverting change for rGfbe965591f8a: nfscl: Do not do readahead for directories: rGc68db4608ef6: Revert "nfscl: Do not do readahead for directories".
May 26 2024, 3:06 PM

May 13 2024

rmacklem committed rG2c65656b29fb: nfsd: Fix Link conformance with RFC8881 for delegations (authored by rmacklem).
nfsd: Fix Link conformance with RFC8881 for delegations
May 13 2024, 4:52 AM

May 11 2024

rmacklem committed rG85e63d952d5d: nfsd: Fix Link conformance with RFC8881 for delegations (authored by rmacklem).
nfsd: Fix Link conformance with RFC8881 for delegations
May 11 2024, 1:12 AM
rmacklem committed rG3c414a8c2fb3: nfsd: Fix Link conformance with RFC8881 for delegations (authored by rmacklem).
nfsd: Fix Link conformance with RFC8881 for delegations
May 11 2024, 1:07 AM

May 10 2024

rmacklem committed rGfbe965591f8a: nfscl: Do not do readahead for directories (authored by rmacklem).
nfscl: Do not do readahead for directories
May 10 2024, 1:36 AM

May 7 2024

rmacklem added a reviewer for D45118: Add options for mountd , nfsd and rpcbind: manpages.

I've made some inline comments, but it looks generally ok to me.
All the man page updates require a change to the date (.Dd line)
and manpages should be asked for a group review.

May 7 2024, 10:36 PM
rmacklem added a comment to D36194: copy_file_range: If _PC_MIN_HOLE_SIZE is small, use mnt_stat.f_iosize.

I believe so, yes.

May 7 2024, 12:36 AM

May 4 2024

rmacklem committed rG3f65000b6b14: nfsd: Fix Link conformance with RFC8881 for delegations (authored by rmacklem).
nfsd: Fix Link conformance with RFC8881 for delegations
May 4 2024, 9:33 PM

May 2 2024

rmacklem committed rGf8575d4e4758: krpc: Ref cnt the client structures for TLS upcalls (authored by rmacklem).
krpc: Ref cnt the client structures for TLS upcalls
May 2 2024, 1:21 AM
rmacklem committed rGf6b902a4117a: krpc: Ref cnt the client structures for TLS upcalls (authored by rmacklem).
krpc: Ref cnt the client structures for TLS upcalls
May 2 2024, 1:13 AM

May 1 2024

rmacklem committed rG825cb4c850f2: nfscl: Clear out a lot of cruft related to B_DIRECT (authored by rmacklem).
nfscl: Clear out a lot of cruft related to B_DIRECT
May 1 2024, 1:25 AM
rmacklem committed rG19b6aa047e77: nfscl: Do not use nfso_own for delayed nfsrpc_doclose() (authored by rmacklem).
nfscl: Do not use nfso_own for delayed nfsrpc_doclose()
May 1 2024, 1:18 AM
rmacklem committed rGa3b8266f5420: nfscl: Clear out a lot of cruft related to B_DIRECT (authored by rmacklem).
nfscl: Clear out a lot of cruft related to B_DIRECT
May 1 2024, 1:13 AM
rmacklem committed rGc91861cc216d: nfscl: Do not use nfso_own for delayed nfsrpc_doclose() (authored by rmacklem).
nfscl: Do not use nfso_own for delayed nfsrpc_doclose()
May 1 2024, 1:06 AM

Apr 28 2024

rmacklem added a reverting change for rGf300335d9aeb: nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH: rGfba90651e430: Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH".
Apr 28 2024, 1:42 AM
rmacklem committed rGfba90651e430: Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH" (authored by rmacklem).
Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH"
Apr 28 2024, 1:42 AM
rmacklem added a reverting change for rGf300335d9aeb: nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH: rGaab71045646b: Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH".
Apr 28 2024, 1:38 AM
rmacklem committed rGaab71045646b: Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH" (authored by rmacklem).
Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH"
Apr 28 2024, 1:38 AM
rmacklem committed rG2fe5dc8691d5: nfscl: Revert part of commit 196787f79e67 (authored by rmacklem).
nfscl: Revert part of commit 196787f79e67
Apr 28 2024, 12:37 AM
rmacklem closed D44980: nfscl: Clear out a lot of cruft related to B_DIRECT that is never executed.
Apr 28 2024, 12:13 AM
rmacklem committed rG03a39a17089a: nfscl: Clear out a lot of cruft related to B_DIRECT (authored by rmacklem).
nfscl: Clear out a lot of cruft related to B_DIRECT
Apr 28 2024, 12:13 AM

Apr 27 2024

rmacklem updated the diff for D44980: nfscl: Clear out a lot of cruft related to B_DIRECT that is never executed.

Made the changes suggested by kib@.

Apr 27 2024, 10:52 PM
rmacklem requested review of D44980: nfscl: Clear out a lot of cruft related to B_DIRECT that is never executed.
Apr 27 2024, 3:29 AM
rmacklem committed rG4ba444de708b: krpc: Ref cnt the client structures for TLS upcalls (authored by rmacklem).
krpc: Ref cnt the client structures for TLS upcalls
Apr 27 2024, 12:57 AM

Apr 26 2024

rmacklem committed rG6251027c4252: nfscl: Do not use nfso_own for delayed nfsrpc_doclose() (authored by rmacklem).
nfscl: Do not use nfso_own for delayed nfsrpc_doclose()
Apr 26 2024, 4:00 AM

Apr 25 2024

rmacklem committed rG8efba70d7914: nfscl: Revert part of commit 196787f79e67 (authored by rmacklem).
nfscl: Revert part of commit 196787f79e67
Apr 25 2024, 7:34 PM
rmacklem added a reverting change for rGf300335d9aeb: nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH: rG54c3aa02e926: Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH".
Apr 25 2024, 4:46 PM
rmacklem committed rG54c3aa02e926: Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH" (authored by rmacklem).
Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH"
Apr 25 2024, 4:46 PM

Apr 23 2024

rmacklem accepted D44906: nfs: Default to nfs_reserved_port_only="YES".

lgtm

Apr 23 2024, 4:08 PM
rmacklem added a comment to D44906: nfs: Default to nfs_reserved_port_only="YES".

Oh hmm, not unrelated, but at a glance I think it is superseded by the privport check. That is, all code paths which lead there first have to go through the privport check. But I could be wrong about this.

It feels like NFS_REQRSVPORT is older but apparently it was introduced by the same (initial) commit as the if (nfs_privport ... check (9ec7b004d0edb). Maybe replacing NFS_REQRSVPORT by a runtime check for nfs_privport would make sense, but I don't really know this code. It may be instead that the code under NFS_REQRSVPORT is redundant, I'm not sure either. In any case, this would be a separate change.

Apr 23 2024, 5:22 AM

Apr 22 2024

rmacklem accepted D44906: nfs: Default to nfs_reserved_port_only="YES".

lgtm. I cannot recall if there is any man page change
needed for this?

Apr 22 2024, 9:52 PM

Apr 18 2024

rmacklem committed rG40631b79b5fe: nfscl: Purge name cache when readdir_plus is done (authored by • zbeeble_gmail.com).
nfscl: Purge name cache when readdir_plus is done
Apr 18 2024, 12:51 AM

Apr 16 2024

rmacklem accepted D44819: nfsserver: Rate-limit messages about requests from unprivileged ports.

lgtm

Apr 16 2024, 11:29 PM
rmacklem committed rG936c6d5c9618: mountd.8: Document the new -A mountd option (authored by rmacklem).
mountd.8: Document the new -A mountd option
Apr 16 2024, 3:02 AM

Apr 14 2024

rmacklem committed rGc39938ddd3a7: exports.5: Add RFC number for NFS over TLS (authored by rmacklem).
exports.5: Add RFC number for NFS over TLS
Apr 14 2024, 1:17 AM
rmacklem committed rG4ce277a31523: exports.5: Add RFC number for NFS over TLS (authored by rmacklem).
exports.5: Add RFC number for NFS over TLS
Apr 14 2024, 1:13 AM
rmacklem committed rG58fdd8509cf1: mountd.c: Add warning messages for administrative controls (authored by rmacklem).
mountd.c: Add warning messages for administrative controls
Apr 14 2024, 1:05 AM

Apr 11 2024

rmacklem committed rGd00c64bb2347: nfscl: Purge name cache when readdir_plus is done (authored by • zbeeble_gmail.com).
nfscl: Purge name cache when readdir_plus is done
Apr 11 2024, 8:32 PM

Apr 9 2024

rmacklem abandoned D44499: Clarify how exports work for administrative controls.

markj@ has a better patch in D44614.

Apr 9 2024, 2:04 AM
rmacklem committed rGcce11997a052: mountd.8: Document the new -A mountd option (authored by rmacklem).
mountd.8: Document the new -A mountd option
Apr 9 2024, 2:00 AM
rmacklem closed D44692: mountd.8: Document the new -A mountd option.
Apr 9 2024, 2:00 AM

Apr 8 2024

rmacklem requested review of D44692: mountd.8: Document the new -A mountd option.
Apr 8 2024, 11:52 PM
rmacklem accepted D44614: exports.5: Clarify that exported dirs should be local mount points.
Apr 8 2024, 11:13 PM

Apr 7 2024

rmacklem committed rG401c0f8aa1ce: exports.5: Add RFC number for NFS over TLS (authored by rmacklem).
exports.5: Add RFC number for NFS over TLS
Apr 7 2024, 11:37 PM

Apr 3 2024

rmacklem accepted D44614: exports.5: Clarify that exported dirs should be local mount points.

I made a couple of comments, but feel free to ignore
them, since I think the patch is fine without the changes.

Apr 3 2024, 8:18 PM

Apr 1 2024

rmacklem committed rG23a48a469a4e: nfsd.8: Document ways to minimize Copy operation times (authored by rmacklem).
nfsd.8: Document ways to minimize Copy operation times
Apr 1 2024, 2:17 AM
rmacklem committed rG71f16d2efe7e: nfsd.8: Document ways to minimize Copy operation times (authored by rmacklem).
nfsd.8: Document ways to minimize Copy operation times
Apr 1 2024, 2:12 AM

Mar 31 2024

rmacklem committed rGfefb7c399b39: mountd.c: Add warning messages for administrative controls (authored by rmacklem).
mountd.c: Add warning messages for administrative controls
Mar 31 2024, 7:01 PM
rmacklem closed D44502: Make mountd generate warning log messages when administrative controls exports entire file systems.
Mar 31 2024, 7:01 PM

Mar 30 2024

rmacklem committed rG322412b83bef: vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE (authored by rmacklem).
vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE
Mar 30 2024, 9:01 PM
rmacklem committed rGd3db309653aa: nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size (authored by rmacklem).
nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size
Mar 30 2024, 1:07 AM
rmacklem committed rGb525301850f2: nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size (authored by rmacklem).
nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size
Mar 30 2024, 1:00 AM

Mar 29 2024

rmacklem committed rGdf2b8b494412: vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE (authored by rmacklem).
vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE
Mar 29 2024, 1:17 AM

Mar 27 2024

rmacklem added a comment to D44499: Clarify how exports work for administrative controls.

I'd somewhat prefer to make this more prominent, having its own paragraph in the description section. I understand that the problem at hand is a natural consequence of how exports(5) works, but it's really easy for someone new to NFS to miss that they can't "safely" export a single subdirectory from a local filesystem on the server.

Mar 27 2024, 10:26 PM

Mar 26 2024

rmacklem updated the diff for D44499: Clarify how exports work for administrative controls.

Made the changes suggested by emaste@.

Mar 26 2024, 2:07 AM
rmacklem added inline comments to D44502: Make mountd generate warning log messages when administrative controls exports entire file systems.
Mar 26 2024, 12:48 AM

Mar 25 2024

rmacklem requested review of D44502: Make mountd generate warning log messages when administrative controls exports entire file systems.
Mar 25 2024, 11:36 PM
rmacklem requested review of D44499: Clarify how exports work for administrative controls.
Mar 25 2024, 7:45 PM

Mar 20 2024

rmacklem accepted D44002: NFS: Request use of TCP_USE_DDP for in-kernel TCP sockets.

This version looks fine to me. I'll let you decide whether or
not to leave the TCP check in.

Mar 20 2024, 12:28 AM

Mar 18 2024

rmacklem committed rG8f13abb4fd2f: nfsd.8: Document ways to minimize Copy operation times (authored by rmacklem).
nfsd.8: Document ways to minimize Copy operation times
Mar 18 2024, 10:42 PM
rmacklem closed D44395: Document ways to reduce Copy times in the nfsd.
Mar 18 2024, 10:42 PM
rmacklem added a comment to D44395: Document ways to reduce Copy times in the nfsd.

Very minor comment: there should be markup for sysctl variables, but I haven't checked another manual page to be sure which one we're using. (My gut says .Li would be the expected formatting.)

Mar 18 2024, 1:56 PM

Mar 17 2024

rmacklem updated the diff for D44395: Document ways to reduce Copy times in the nfsd.

This version has Mike Karel's suggested change.

Mar 17 2024, 7:19 PM

Mar 16 2024

rmacklem requested review of D44395: Document ways to reduce Copy times in the nfsd.
Mar 16 2024, 10:28 PM
rmacklem committed rG748f56c53f42: nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size (authored by rmacklem).
nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size
Mar 16 2024, 1:07 AM

Mar 15 2024

rmacklem committed rG89f1dcb3eb46: vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE (authored by rmacklem).
vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE
Mar 15 2024, 12:38 AM

Mar 12 2024

rmacklem added a comment to D44309: Use va_bytes >= va_size as a hint that a file is not sparse for vn_generic_copy_file_range().

va_holey may be the way to go for FreeBSD15, so long as
it is easy to calculate. Having a file system do something
akin to Seek_Hole in VOP_GETATTR() would defeat the purpose.

Mar 12 2024, 2:19 PM
rmacklem updated the diff for D44309: Use va_bytes >= va_size as a hint that a file is not sparse for vn_generic_copy_file_range().

Updated the comment as suggested by kib@.

Mar 12 2024, 2:13 PM

Mar 11 2024

rmacklem retitled D44309: Use va_bytes >= va_size as a hint that a file is not sparse for vn_generic_copy_file_range() from Use va_bytes >= va_size as ahint that a file is not sparse for vn_generic_copy_file_range() to Use va_bytes >= va_size as a hint that a file is not sparse for vn_generic_copy_file_range().
Mar 11 2024, 8:43 PM
rmacklem requested review of D44309: Use va_bytes >= va_size as a hint that a file is not sparse for vn_generic_copy_file_range().
Mar 11 2024, 8:39 PM

Mar 7 2024

rmacklem added a comment to D44002: NFS: Request use of TCP_USE_DDP for in-kernel TCP sockets.
In D44002#1009718, @jhb wrote:

Hmm. Sounds like it should only be enabled if TLS is
not enabled?
For the TLS case, the receive code in clnt_vc.c does
upcalls to userland for non-application data records
and these are handled by the OpenSSL library using
a SSL_read() call.

No, it's fine to enable if TLS is enabled, but we do want to enable TLS first to give TLS offload priority over DDP.
You can still use DDP for data copied out to userspace, it's just not as useful an optimization in that case.

This patch would enable it before TLS unconditionally,
I think?

Yes.

If you look at clnt_rc.c, you'll find the rpctls_connect()
call right after the clnt_vc_create() call. That is what enables
the ktls via an upcall to the daemon that does a SSL_connect().
It sounds like that is where the socket option should be set?

Yes, for the client I can move it back to where it was before, but leave off the CLSET_DDP complexity.

Yes, that sounds fine to me.

Mar 7 2024, 10:56 PM