diff options
author | Steve French <stfrench@microsoft.com> | 2018-08-31 15:12:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-19 22:43:36 +0200 |
commit | 55bcfe019ac4a2ab2308cec4dae83b7830fa9b6a (patch) | |
tree | 7a37c2edc7d3324eeb8c84617928d53139b34260 /arch/s390/kvm/vsie.c | |
parent | b0b69369eecc4cdc6680e1bf6e14a632d5a447d9 (diff) | |
download | linux-stable-55bcfe019ac4a2ab2308cec4dae83b7830fa9b6a.tar.gz linux-stable-55bcfe019ac4a2ab2308cec4dae83b7830fa9b6a.tar.bz2 linux-stable-55bcfe019ac4a2ab2308cec4dae83b7830fa9b6a.zip |
smb3: check for and properly advertise directory lease support
commit f801568332321e2b1e7a8bd26c3e4913a312a2ec upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/s390/kvm/vsie.c')
0 files changed, 0 insertions, 0 deletions