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.04-RC.1 / Disable SMB2 lease support in multiprotocol SMB mode (by anodos325) #15741

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

bugclerk
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.

Original PR: #15740
Jira URL: https://ixsystems.atlassian.net/browse/NAS-133680

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.

(cherry picked from commit 0513234)
(cherry picked from commit d7a0738)
Co-authored-by: Caleb St. John <30729806+yocalebo@users.noreply.github.com>
(cherry picked from commit d2071c0)
@anodos325 anodos325 merged commit a37a4fe into stable/fangtooth Feb 17, 2025
1 check passed
@anodos325 anodos325 deleted the NAS-133680-25.04-RC.1 branch February 17, 2025 20:58
@bugclerk
Copy link
Contributor Author

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.

2 participants