aboutsummaryrefslogtreecommitdiff
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-02-14 01:36:20 +0000
committerSteve French <sfrench@us.ibm.com>2006-02-14 01:36:20 +0000
commit5815449d1bfcb22f74b0e36a8b0631d6584cb7fc (patch)
treec97d3456c9df46ab3e73d8b0e9197d4dc1034697 /fs/cifs/cifssmb.c
parentb580513e841d81eebf0d7b02f412be0882c2ce5f (diff)
[CIFS] SessionSetup cleanup part 2
The cifs session setup code has three cases, and a fourth for backlevel LANMAN2 style session setup needed to be added. This new session setup implmentation will eventually replace the other three and should be easier to read while fixing a few minor problems (not setting the LARGE READ/WRITEX flags when NTLMSSP was negotiated for example) and adding support for NTLMv2 (which will be added with the next patch. In the meantime, this code is marked in an CONFIG_CIFS_EXPERIMENTAL block and will not be turned on by default until it is tested against more server types. Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index fcf98cfd415..38ab9f67c5f 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -186,15 +186,17 @@ small_smb_init(int smb_command, int wct, struct cifsTconInfo *tcon,
cifs_stats_inc(&tcon->num_smbs_sent);
return rc;
-}
+}
+
+#ifdef CONFIG_CIFS_EXPERIMENTAL
int
-small_smb_init_no_tcon(int smb_command, int wct, struct cifsSesInfo *ses,
- void **request_buf)
+small_smb_init_no_tc(const int smb_command, const int wct,
+ struct cifsSesInfo *ses, void **request_buf)
{
int rc;
struct smb_hdr * buffer;
- rc = small_smb_init(smb_command, wct, 0, request_buf);
+ rc = small_smb_init(smb_command, wct, NULL, request_buf);
if(rc)
return rc;
@@ -212,7 +214,7 @@ small_smb_init_no_tcon(int smb_command, int wct, struct cifsSesInfo *ses,
return rc;
}
-
+#endif /* CONFIG_CIFS_EXPERIMENTAL */
/* If the return code is zero, this function must fill in request_buf pointer */
static int