Skip to content

nfs-utils: remove automatic statd check and defer control to user#58775

Merged
ahesford merged 1 commit intovoid-linux:masterfrom
slymattz:nfsv4_improve_check
Feb 3, 2026
Merged

nfs-utils: remove automatic statd check and defer control to user#58775
ahesford merged 1 commit intovoid-linux:masterfrom
slymattz:nfsv4_improve_check

Conversation

@slymattz
Copy link
Contributor

Testing the changes

  • I tested the changes in this PR: YES

Motivation for the change

Currently, the NFSV4_ONLY variable is only checked for a non-empty string meaning assigning any value including n/no/false etc. would make it pass the test.

The proposed change normalizes the check.

Please advise whether this should be revbumped or left as is.

Local build testing

  • I built this PR locally for my native architecture: x86_64-glibc

@classabbyamp
Copy link
Member

is it documented as accepting negative/false values = disable? "if variable is set = enable" is a pretty common pattern on void

Copy link
Member

@ahesford ahesford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said six months ago, this was the wrong fix. It adds an extra source of truth that requires synchronization in two separate configurations or you can end up with a non-working configuration. Not only that, but sv check doesn't actually do what's intended. It is racy and incomplete, and what's worse, even in the cases where it might gate the remainder of this service, the failure will be silent and likely to go unnoticed.

The proposed change just doubles down on complexity without addressing the real issues. Just remove the sv check and let people worry for themselves whether they need to enable it. This lets you discard the extra source of truth and simplifies, rather than complicates, this service.

@slymattz slymattz force-pushed the nfsv4_improve_check branch from 2c2688a to 02947e8 Compare January 31, 2026 15:06
@slymattz slymattz changed the title nfs-utils: harden NFSV4_ONLY variable check nfs-utils: remove automatic statd check and defer control to user Jan 31, 2026
@slymattz slymattz requested a review from ahesford January 31, 2026 15:13
@slymattz
Copy link
Contributor Author

This lets you discard the extra source of truth and simplifies, rather than complicates, this service.

I agree. This way it looks simpler and everything is documented on void docs. The hack wasn't documented at all except for the comment in the runit file.

@ahesford ahesford merged commit 4ffb772 into void-linux:master Feb 3, 2026
8 checks passed
@slymattz slymattz deleted the nfsv4_improve_check branch February 3, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants