Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-133680 / 25.10 / Disable SMB2 lease support in multiprotocol SMB mode #15740

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

anodos325
Copy link
Contributor

This commit disables SMB2/3 lease support globally when multiprotocol SMB shares are enabled. This is because despite kernel_oplocks being a per-share parameter in libsmbconf, it is incompatible with SMB2/3 lease support and can lead to unexpected failures depending on the order in which the SMB client has negotiated its first SMB tree connect.

Validation logic is simplified by making this share type mutually exclusive with AAPL extension support because timemachine -- the main driver for enabling this -- requires SMB2/3 lease support.

This commit disables SMB2/3 lease support globally when multiprotocol
SMB shares are enabled. This is because despite kernel_oplocks being
a per-share parameter in libsmbconf, it is incompatible with SMB2/3
lease support and can lead to unexpected failures depending on the
order in which the SMB client has negotiated its first SMB tree
connect.

Validation logic is simplified by making this share type mutually
exclusive with AAPL extension support because timemachine -- the main
driver for enabling this -- requires SMB2/3 lease support.
@bugclerk bugclerk changed the title Disable SMB2 lease support in multiprotocol SMB mode NAS-133680 / 25.10 / Disable SMB2 lease support in multiprotocol SMB mode Feb 17, 2025
@bugclerk
Copy link
Contributor

@anodos325 anodos325 requested a review from a team February 17, 2025 19:49
Co-authored-by: Caleb St. John <30729806+yocalebo@users.noreply.github.com>
@anodos325 anodos325 merged commit 95810c8 into master Feb 17, 2025
2 checks passed
@anodos325 anodos325 deleted the NAS-133680 branch February 17, 2025 20:45
@bugclerk
Copy link
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Feb 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants