diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-05-25 02:43:58 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-24 01:33:26 -0400 |
commit | 286170aa241819f39d9d1d5d9f2434cfb8519506 (patch) | |
tree | f7f4a8fd6eb653ac0f40cab9e8468462316fe41e /fs/cifs/cifsglob.h | |
parent | a891f0f895f4a760fdb99636fab05e60597b8224 (diff) |
CIFS: Move protocol specific negotiate code to ops struct
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 844b77c2bc9c..8a4150573cf8 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -192,6 +192,10 @@ struct smb_version_operations { | |||
192 | /* process transaction2 response */ | 192 | /* process transaction2 response */ |
193 | bool (*check_trans2)(struct mid_q_entry *, struct TCP_Server_Info *, | 193 | bool (*check_trans2)(struct mid_q_entry *, struct TCP_Server_Info *, |
194 | char *, int); | 194 | char *, int); |
195 | /* check if we need to negotiate */ | ||
196 | bool (*need_neg)(struct TCP_Server_Info *); | ||
197 | /* negotiate to the server */ | ||
198 | int (*negotiate)(const unsigned int, struct cifs_ses *); | ||
195 | }; | 199 | }; |
196 | 200 | ||
197 | struct smb_version_values { | 201 | struct smb_version_values { |
@@ -324,7 +328,7 @@ struct TCP_Server_Info { | |||
324 | struct mutex srv_mutex; | 328 | struct mutex srv_mutex; |
325 | struct task_struct *tsk; | 329 | struct task_struct *tsk; |
326 | char server_GUID[16]; | 330 | char server_GUID[16]; |
327 | char sec_mode; | 331 | __u16 sec_mode; |
328 | bool session_estab; /* mark when very first sess is established */ | 332 | bool session_estab; /* mark when very first sess is established */ |
329 | u16 dialect; /* dialect index that server chose */ | 333 | u16 dialect; /* dialect index that server chose */ |
330 | enum securityEnum secType; | 334 | enum securityEnum secType; |
@@ -459,7 +463,7 @@ struct cifs_ses { | |||
459 | char *serverOS; /* name of operating system underlying server */ | 463 | char *serverOS; /* name of operating system underlying server */ |
460 | char *serverNOS; /* name of network operating system of server */ | 464 | char *serverNOS; /* name of network operating system of server */ |
461 | char *serverDomain; /* security realm of server */ | 465 | char *serverDomain; /* security realm of server */ |
462 | int Suid; /* remote smb uid */ | 466 | __u64 Suid; /* remote smb uid */ |
463 | uid_t linux_uid; /* overriding owner of files on the mount */ | 467 | uid_t linux_uid; /* overriding owner of files on the mount */ |
464 | uid_t cred_uid; /* owner of credentials */ | 468 | uid_t cred_uid; /* owner of credentials */ |
465 | int capabilities; | 469 | int capabilities; |