[cifs-protocol] [REG:120030321000983] SMB2: opening file for READ_CONTROL doesn't trigger lease break
jeffm at microsoft.com
Tue Mar 3 14:32:52 UTC 2020
[DocHelp to BCC, support on CC, SR ID on Subject]
Thank you for sending in your question and trace. We have created SR 120030321000983 to track this issue. I will review your trace and follow up.
Jeff McCashland | Senior Escalation Engineer | Microsoft Protocol Open Specifications Team
Phone: +1 (425) 703-8300 x38300 | Hours: 9am-5pm | Time zone: (UTC-08:00) Pacific Time (US and Canada)
Local country phone number found here: http://support.microsoft.com/globalenglish | Extension 1138300
We value your feedback. My manager is Jeremy Chapman (jeremyc), +1 (469) 775-2475
From: Ralph Boehme <slow at samba.org>
Sent: Tuesday, March 3, 2020 2:57 AM
To: Interoperability Documentation Help <dochelp at microsoft.com>
Cc: cifs-protocol at lists.samba.org
Subject: [EXTERNAL] SMB2: opening file for READ_CONTROL doesn't trigger lease break
according to MS-FSA 22.214.171.124 opening a file with at most FILE_READ_ATTRIBUTES, FILE_WRITE_ATTRIBUTES, or SYNCHRONIZE avoids triggering an oplock break:
If OpParams.DesiredAccess contains no flags other than
FILE_READ_ATTRIBUTES, FILE_WRITE_ATTRIBUTES, or SYNCHRONIZE
the algorithm returns at this point.
However, testing all valid file access bits individually against a Windows 2016 server reveals that an access mask of READ_CONTROL also doesn't trigger an oplock break.
Attached is a network trace of a testcase that tests all possible file access masks.
The testcase with READ_CONTROL begins in packet 137 (request open with RWH lease), the open with READ_CONTROL is in packet 139.
Can you clarify?
Ralph Boehme, Samba Team https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsamba.org%2F&data=02%7C01%7Cjeffm%40microsoft.com%7C444a1cf14eac4ae4623808d7bf61ae67%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637188298574960280&sdata=RAVHE7qjEk6Gi20xu8CxSloRq2EMgk5pdUgskLAkgLI%3D&reserved=0
Samba Developer, SerNet GmbH https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsernet.de%2Fen%2Fsamba%2F&data=02%7C01%7Cjeffm%40microsoft.com%7C444a1cf14eac4ae4623808d7bf61ae67%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637188298574960280&sdata=NpTVHNVnfAdmV8f4XbQYQEB49fi5NINONoDiNdzSC2U%3D&reserved=0
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 47024 bytes
More information about the cifs-protocol