SMB2 oplock leases
Feature request for SMB2/SMB3 oplock leases, as specified in
[MS-SMB2] sec. 22.214.171.124.8 SMB2_CREATE_REQUEST_LEASE
and [MS-FSA] sec. 126.96.36.199 etc.
Steps to Reproduce:
Run the smbtorture test cases: smb2.oplock smb2.lease
Most should pass (with some expected failures)
Many smb2.oplock tests currently fail.
All the smb2.lease tests report "skip" because leases are not supported.
Updated by Gordon Ross 3 months ago
- Description updated (diff)
- Status changed from New to In Progress
This work includes a development testing program (testoplock) that can be used to simulate various sequences of opens and cache delegation requests (oplock leases). That program was designed primarily for investigating various state transitions taken by a set of oplock leases, but it can also be used for regression testing in case smb_cmn_oplock needs work.
Tested per. the description.
Fix in production since mid 2017
Updated by Gordon Ross 2 months ago
One really nice thing about getting SMB2 Leases integrated is that SMB2 clients can again take advantage of "cache deletations".
The old "oplock" (cache delegation) code for SMB1 turned out not to work well with Windows SMB2 clients, so before this fix we had to disable oplocks (or disable SMB2). With SMB2 leases, we can once again enable oplocks in the SMB server.
# sharectl set -p oplock_enable=true smb # sharectl get -p oplock_enable smb oplock_enable=true
Updated by Electric Monk 2 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 94047d49916b669576decf2f622a1ee718646882 Author: Gordon Ross <firstname.lastname@example.org> Date: 2019-06-09T00:48:57.000Z 11016 SMB2 oplock leases Reviewed by: Matt Barden <email@example.com> Reviewed by: Evan Layton <firstname.lastname@example.org> Reviewed by: Roman Strashkin <email@example.com> Approved by: Garrett D'Amore <firstname.lastname@example.org>