cifs: handle "nolease" option for vers=1.0
authorKenneth D'souza <kdsouza@redhat.com>
Mon, 18 May 2020 07:31:34 +0000 (13:01 +0530)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Jun 2020 05:10:17 +0000 (00:10 -0500)
commit8fd6e1d6941ce623ae62420d264c1b5505971b2b
tree3653d543b948323eb5da0a61447bc64a89a89ac3
parent3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
cifs: handle "nolease" option for vers=1.0

The "nolease" mount option is only supported for SMB2+ mounts.
Fail with appropriate error message if vers=1.0 option is passed.

Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c