diff options
author | Steve French <smfrench@gmail.com> | 2012-11-28 23:21:06 -0600 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 13:27:29 -0600 |
commit | dd446b16edd74ca525208d924d426f786dd973f8 (patch) | |
tree | 5699eb645592ce2cc078ced6a91df6916ff577ae /fs/cifs/smb2ops.c | |
parent | 21cb2d90c76cbc951da3a266f0dd439d64f3114a (diff) | |
download | linux-dd446b16edd74ca525208d924d426f786dd973f8.tar.gz linux-dd446b16edd74ca525208d924d426f786dd973f8.tar.bz2 linux-dd446b16edd74ca525208d924d426f786dd973f8.zip |
Add SMB2.02 dialect support
This patch enables optional for original SMB2 (SMB2.02) dialect
by specifying vers=2.0 on mount.
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r-- | fs/cifs/smb2ops.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 137aaf8d6f38..ad4d96a4bff5 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -625,6 +625,23 @@ struct smb_version_operations smb21_operations = { .new_lease_key = smb2_new_lease_key, }; +struct smb_version_values smb20_values = { + .version_string = SMB20_VERSION_STRING, + .protocol_id = SMB20_PROT_ID, + .req_capabilities = 0, /* MBZ */ + .large_lock_type = 0, + .exclusive_lock_type = SMB2_LOCKFLAG_EXCLUSIVE_LOCK, + .shared_lock_type = SMB2_LOCKFLAG_SHARED_LOCK, + .unlock_lock_type = SMB2_LOCKFLAG_UNLOCK, + .header_size = sizeof(struct smb2_hdr), + .max_header_size = MAX_SMB2_HDR_SIZE, + .read_rsp_size = sizeof(struct smb2_read_rsp) - 1, + .lock_cmd = SMB2_LOCK, + .cap_unix = 0, + .cap_nt_find = SMB2_NT_FIND, + .cap_large_files = SMB2_LARGE_FILES, +}; + struct smb_version_values smb21_values = { .version_string = SMB21_VERSION_STRING, .protocol_id = SMB21_PROT_ID, |