nfsdctl: properly handle older kernels that don't support min-threads
Get series with b4
b4 am [email protected] change-id 20260203-minthreads-402ce87096e0Versions newest first
- v2 Latest4 patches 4 repliesIn review
- v13 patches 1 replySuperseded
Changes in v2 from the cover letter
- Add patch to unconditionally compile in min-threads support
- Make getpolicy_handler() return NL_SKIP
- Link to v1: https://lore.kernel.org/r/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | nfsdctl: unconditionally enable support for min-threadsconfigure.ac utils/ utils/ | +5 | 0 replies | |
| 2/4 | nfsdctl: only resolve netlink family names onceutils/ | +64 | 0 replies | |
| 3/4 | nfsdctl: query netlink policy before sending the minthreads attribute to kernelutils/ | +94 | 0 replies | |
| 4/4 | nfsdctl: remove unneeded newlines from xlog() format stringsutils/ | +5 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Benjamin Coddington |
|---|---|
| Series | R-b T-b |
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH nfs-utils v2 0/4] nfsdctl: properly handle older kernels that don't support min-threads
Ben reported a problem with using new userland with old kernel. If he tried to send down a setting that the kernel doesn't support, it returns -EINVAL to the call.
This patch series adds a mechanism for nfsdctl to tell what attributes are supported by the "threads" command. If can then use that to determine whether to pass down the min-threads attribute or report an error or warning.
This also removes the dependency on the UAPI headers by properly maintaining the private nfsd_netlink.h file.
---
Changes in v2:
- Add patch to unconditionally compile in min-threads support
- Make getpolicy_handler() return NL_SKIP
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Jeff Layton (4):
nfsdctl: unconditionally enable support for min-threads
nfsdctl: only resolve netlink family names once
nfsdctl: query netlink policy before sending the minthreads attribute to kernel
nfsdctl: remove unneeded newlines from xlog() format strings
configure.ac | 6 +- utils/nfsdctl/nfsd_netlink.h | 2 + utils/nfsdctl/nfsdctl.c | 204 ++++++++++++++++++++++++++++++++++--------- 3 files changed, 168 insertions(+), 44 deletions(-)
---
base-commit: 8f54511aefe1455161a6c4406ed8c770139f61e3
change-id: 20260203-minthreads-402ce87096e0
Best regards,
Signature · 1 line
Jeff Layton <[email protected]>