diff options
author | Steve French <stfrench@microsoft.com> | 2018-08-31 23:12:10 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-09-03 07:21:42 +0300 |
commit | f801568332321e2b1e7a8bd26c3e4913a312a2ec (patch) | |
tree | cc9936a0b914ed0dd70fd4c7d8f0224091b9bbe6 /fs/nfs_common | |
parent | 25f2573512d7b38bca4c0878109db9600b8b711f (diff) | |
download | linux-f801568332321e2b1e7a8bd26c3e4913a312a2ec.tar.xz |
smb3: check for and properly advertise directory lease support
Although servers will typically ignore unsupported features,
we should advertise the support for directory leases (as
Windows e.g. does) in the negotiate protocol capabilities we
pass to the server, and should check for the server capability
(CAP_DIRECTORY_LEASING) before sending a lease request for an
open of a directory. This will prevent us from accidentally
sending directory leases to SMB2.1 or SMB2 server for example.
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions