diff options
author | Steve French <sfrench@us.ibm.com> | 2011-05-27 00:34:02 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-27 00:34:02 -0400 |
commit | 96daf2b09178d8ebde2b0d56b027de917c17dfdf (patch) | |
tree | 74802fa44e87925e49067d5106eb762cc27b9b97 /fs/cifs/cifssmb.c | |
parent | 07cc6cf9ef84bcf6a60ee513332bcb0ad5d628d8 (diff) |
[CIFS] Rename three structures to avoid camel case
secMode to sec_mode
and
cifsTconInfo to cifs_tcon
and
cifsSesInfo to cifs_ses
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 166 |
1 files changed, 83 insertions, 83 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index fc9b5fa98efd..1a9fe7f816d1 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -85,7 +85,7 @@ static struct { | |||
85 | 85 | ||
86 | /* Mark as invalid, all open files on tree connections since they | 86 | /* Mark as invalid, all open files on tree connections since they |
87 | were closed when session to server was lost */ | 87 | were closed when session to server was lost */ |
88 | static void mark_open_files_invalid(struct cifsTconInfo *pTcon) | 88 | static void mark_open_files_invalid(struct cifs_tcon *pTcon) |
89 | { | 89 | { |
90 | struct cifsFileInfo *open_file = NULL; | 90 | struct cifsFileInfo *open_file = NULL; |
91 | struct list_head *tmp; | 91 | struct list_head *tmp; |
@@ -105,10 +105,10 @@ static void mark_open_files_invalid(struct cifsTconInfo *pTcon) | |||
105 | 105 | ||
106 | /* reconnect the socket, tcon, and smb session if needed */ | 106 | /* reconnect the socket, tcon, and smb session if needed */ |
107 | static int | 107 | static int |
108 | cifs_reconnect_tcon(struct cifsTconInfo *tcon, int smb_command) | 108 | cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) |
109 | { | 109 | { |
110 | int rc = 0; | 110 | int rc = 0; |
111 | struct cifsSesInfo *ses; | 111 | struct cifs_ses *ses; |
112 | struct TCP_Server_Info *server; | 112 | struct TCP_Server_Info *server; |
113 | struct nls_table *nls_codepage; | 113 | struct nls_table *nls_codepage; |
114 | 114 | ||
@@ -227,7 +227,7 @@ out: | |||
227 | SMB information in the SMB header. If the return code is zero, this | 227 | SMB information in the SMB header. If the return code is zero, this |
228 | function must have filled in request_buf pointer */ | 228 | function must have filled in request_buf pointer */ |
229 | static int | 229 | static int |
230 | small_smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, | 230 | small_smb_init(int smb_command, int wct, struct cifs_tcon *tcon, |
231 | void **request_buf) | 231 | void **request_buf) |
232 | { | 232 | { |
233 | int rc; | 233 | int rc; |
@@ -253,7 +253,7 @@ small_smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, | |||
253 | 253 | ||
254 | int | 254 | int |
255 | small_smb_init_no_tc(const int smb_command, const int wct, | 255 | small_smb_init_no_tc(const int smb_command, const int wct, |
256 | struct cifsSesInfo *ses, void **request_buf) | 256 | struct cifs_ses *ses, void **request_buf) |
257 | { | 257 | { |
258 | int rc; | 258 | int rc; |
259 | struct smb_hdr *buffer; | 259 | struct smb_hdr *buffer; |
@@ -279,7 +279,7 @@ small_smb_init_no_tc(const int smb_command, const int wct, | |||
279 | 279 | ||
280 | /* If the return code is zero, this function must fill in request_buf pointer */ | 280 | /* If the return code is zero, this function must fill in request_buf pointer */ |
281 | static int | 281 | static int |
282 | __smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, | 282 | __smb_init(int smb_command, int wct, struct cifs_tcon *tcon, |
283 | void **request_buf, void **response_buf) | 283 | void **request_buf, void **response_buf) |
284 | { | 284 | { |
285 | *request_buf = cifs_buf_get(); | 285 | *request_buf = cifs_buf_get(); |
@@ -305,7 +305,7 @@ __smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, | |||
305 | 305 | ||
306 | /* If the return code is zero, this function must fill in request_buf pointer */ | 306 | /* If the return code is zero, this function must fill in request_buf pointer */ |
307 | static int | 307 | static int |
308 | smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, | 308 | smb_init(int smb_command, int wct, struct cifs_tcon *tcon, |
309 | void **request_buf, void **response_buf) | 309 | void **request_buf, void **response_buf) |
310 | { | 310 | { |
311 | int rc; | 311 | int rc; |
@@ -318,7 +318,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, | |||
318 | } | 318 | } |
319 | 319 | ||
320 | static int | 320 | static int |
321 | smb_init_no_reconnect(int smb_command, int wct, struct cifsTconInfo *tcon, | 321 | smb_init_no_reconnect(int smb_command, int wct, struct cifs_tcon *tcon, |
322 | void **request_buf, void **response_buf) | 322 | void **request_buf, void **response_buf) |
323 | { | 323 | { |
324 | if (tcon->ses->need_reconnect || tcon->need_reconnect) | 324 | if (tcon->ses->need_reconnect || tcon->need_reconnect) |
@@ -367,7 +367,7 @@ static inline void inc_rfc1001_len(void *pSMB, int count) | |||
367 | } | 367 | } |
368 | 368 | ||
369 | int | 369 | int |
370 | CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | 370 | CIFSSMBNegotiate(unsigned int xid, struct cifs_ses *ses) |
371 | { | 371 | { |
372 | NEGOTIATE_REQ *pSMB; | 372 | NEGOTIATE_REQ *pSMB; |
373 | NEGOTIATE_RSP *pSMBr; | 373 | NEGOTIATE_RSP *pSMBr; |
@@ -451,7 +451,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | |||
451 | rc = -EOPNOTSUPP; | 451 | rc = -EOPNOTSUPP; |
452 | goto neg_err_exit; | 452 | goto neg_err_exit; |
453 | } | 453 | } |
454 | server->secMode = (__u8)le16_to_cpu(rsp->SecurityMode); | 454 | server->sec_mode = (__u8)le16_to_cpu(rsp->SecurityMode); |
455 | server->maxReq = le16_to_cpu(rsp->MaxMpxCount); | 455 | server->maxReq = le16_to_cpu(rsp->MaxMpxCount); |
456 | server->maxBuf = min((__u32)le16_to_cpu(rsp->MaxBufSize), | 456 | server->maxBuf = min((__u32)le16_to_cpu(rsp->MaxBufSize), |
457 | (__u32)CIFSMaxBufSize + MAX_CIFS_HDR_SIZE); | 457 | (__u32)CIFSMaxBufSize + MAX_CIFS_HDR_SIZE); |
@@ -505,7 +505,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | |||
505 | cpu_to_le16(CIFS_CRYPTO_KEY_SIZE)) { | 505 | cpu_to_le16(CIFS_CRYPTO_KEY_SIZE)) { |
506 | memcpy(ses->server->cryptkey, rsp->EncryptionKey, | 506 | memcpy(ses->server->cryptkey, rsp->EncryptionKey, |
507 | CIFS_CRYPTO_KEY_SIZE); | 507 | CIFS_CRYPTO_KEY_SIZE); |
508 | } else if (server->secMode & SECMODE_PW_ENCRYPT) { | 508 | } else if (server->sec_mode & SECMODE_PW_ENCRYPT) { |
509 | rc = -EIO; /* need cryptkey unless plain text */ | 509 | rc = -EIO; /* need cryptkey unless plain text */ |
510 | goto neg_err_exit; | 510 | goto neg_err_exit; |
511 | } | 511 | } |
@@ -527,11 +527,11 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | |||
527 | goto neg_err_exit; | 527 | goto neg_err_exit; |
528 | } | 528 | } |
529 | /* else wct == 17 NTLM */ | 529 | /* else wct == 17 NTLM */ |
530 | server->secMode = pSMBr->SecurityMode; | 530 | server->sec_mode = pSMBr->SecurityMode; |
531 | if ((server->secMode & SECMODE_USER) == 0) | 531 | if ((server->sec_mode & SECMODE_USER) == 0) |
532 | cFYI(1, "share mode security"); | 532 | cFYI(1, "share mode security"); |
533 | 533 | ||
534 | if ((server->secMode & SECMODE_PW_ENCRYPT) == 0) | 534 | if ((server->sec_mode & SECMODE_PW_ENCRYPT) == 0) |
535 | #ifdef CONFIG_CIFS_WEAK_PW_HASH | 535 | #ifdef CONFIG_CIFS_WEAK_PW_HASH |
536 | if ((secFlags & CIFSSEC_MAY_PLNTXT) == 0) | 536 | if ((secFlags & CIFSSEC_MAY_PLNTXT) == 0) |
537 | #endif /* CIFS_WEAK_PW_HASH */ | 537 | #endif /* CIFS_WEAK_PW_HASH */ |
@@ -617,7 +617,7 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | |||
617 | } else | 617 | } else |
618 | rc = -EOPNOTSUPP; | 618 | rc = -EOPNOTSUPP; |
619 | } | 619 | } |
620 | } else if (server->secMode & SECMODE_PW_ENCRYPT) { | 620 | } else if (server->sec_mode & SECMODE_PW_ENCRYPT) { |
621 | rc = -EIO; /* no crypt key only if plain text pwd */ | 621 | rc = -EIO; /* no crypt key only if plain text pwd */ |
622 | goto neg_err_exit; | 622 | goto neg_err_exit; |
623 | } else | 623 | } else |
@@ -630,27 +630,27 @@ signing_check: | |||
630 | /* MUST_SIGN already includes the MAY_SIGN FLAG | 630 | /* MUST_SIGN already includes the MAY_SIGN FLAG |
631 | so if this is zero it means that signing is disabled */ | 631 | so if this is zero it means that signing is disabled */ |
632 | cFYI(1, "Signing disabled"); | 632 | cFYI(1, "Signing disabled"); |
633 | if (server->secMode & SECMODE_SIGN_REQUIRED) { | 633 | if (server->sec_mode & SECMODE_SIGN_REQUIRED) { |
634 | cERROR(1, "Server requires " | 634 | cERROR(1, "Server requires " |
635 | "packet signing to be enabled in " | 635 | "packet signing to be enabled in " |
636 | "/proc/fs/cifs/SecurityFlags."); | 636 | "/proc/fs/cifs/SecurityFlags."); |
637 | rc = -EOPNOTSUPP; | 637 | rc = -EOPNOTSUPP; |
638 | } | 638 | } |
639 | server->secMode &= | 639 | server->sec_mode &= |
640 | ~(SECMODE_SIGN_ENABLED | SECMODE_SIGN_REQUIRED); | 640 | ~(SECMODE_SIGN_ENABLED | SECMODE_SIGN_REQUIRED); |
641 | } else if ((secFlags & CIFSSEC_MUST_SIGN) == CIFSSEC_MUST_SIGN) { | 641 | } else if ((secFlags & CIFSSEC_MUST_SIGN) == CIFSSEC_MUST_SIGN) { |
642 | /* signing required */ | 642 | /* signing required */ |
643 | cFYI(1, "Must sign - secFlags 0x%x", secFlags); | 643 | cFYI(1, "Must sign - secFlags 0x%x", secFlags); |
644 | if ((server->secMode & | 644 | if ((server->sec_mode & |
645 | (SECMODE_SIGN_ENABLED | SECMODE_SIGN_REQUIRED)) == 0) { | 645 | (SECMODE_SIGN_ENABLED | SECMODE_SIGN_REQUIRED)) == 0) { |
646 | cERROR(1, "signing required but server lacks support"); | 646 | cERROR(1, "signing required but server lacks support"); |
647 | rc = -EOPNOTSUPP; | 647 | rc = -EOPNOTSUPP; |
648 | } else | 648 | } else |
649 | server->secMode |= SECMODE_SIGN_REQUIRED; | 649 | server->sec_mode |= SECMODE_SIGN_REQUIRED; |
650 | } else { | 650 | } else { |
651 | /* signing optional ie CIFSSEC_MAY_SIGN */ | 651 | /* signing optional ie CIFSSEC_MAY_SIGN */ |
652 | if ((server->secMode & SECMODE_SIGN_REQUIRED) == 0) | 652 | if ((server->sec_mode & SECMODE_SIGN_REQUIRED) == 0) |
653 | server->secMode &= | 653 | server->sec_mode &= |
654 | ~(SECMODE_SIGN_ENABLED | SECMODE_SIGN_REQUIRED); | 654 | ~(SECMODE_SIGN_ENABLED | SECMODE_SIGN_REQUIRED); |
655 | } | 655 | } |
656 | 656 | ||
@@ -662,7 +662,7 @@ neg_err_exit: | |||
662 | } | 662 | } |
663 | 663 | ||
664 | int | 664 | int |
665 | CIFSSMBTDis(const int xid, struct cifsTconInfo *tcon) | 665 | CIFSSMBTDis(const int xid, struct cifs_tcon *tcon) |
666 | { | 666 | { |
667 | struct smb_hdr *smb_buffer; | 667 | struct smb_hdr *smb_buffer; |
668 | int rc = 0; | 668 | int rc = 0; |
@@ -749,7 +749,7 @@ CIFSSMBEcho(struct TCP_Server_Info *server) | |||
749 | } | 749 | } |
750 | 750 | ||
751 | int | 751 | int |
752 | CIFSSMBLogoff(const int xid, struct cifsSesInfo *ses) | 752 | CIFSSMBLogoff(const int xid, struct cifs_ses *ses) |
753 | { | 753 | { |
754 | LOGOFF_ANDX_REQ *pSMB; | 754 | LOGOFF_ANDX_REQ *pSMB; |
755 | int rc = 0; | 755 | int rc = 0; |
@@ -776,7 +776,7 @@ CIFSSMBLogoff(const int xid, struct cifsSesInfo *ses) | |||
776 | 776 | ||
777 | pSMB->hdr.Mid = GetNextMid(ses->server); | 777 | pSMB->hdr.Mid = GetNextMid(ses->server); |
778 | 778 | ||
779 | if (ses->server->secMode & | 779 | if (ses->server->sec_mode & |
780 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) | 780 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) |
781 | pSMB->hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; | 781 | pSMB->hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; |
782 | 782 | ||
@@ -796,7 +796,7 @@ session_already_dead: | |||
796 | } | 796 | } |
797 | 797 | ||
798 | int | 798 | int |
799 | CIFSPOSIXDelFile(const int xid, struct cifsTconInfo *tcon, const char *fileName, | 799 | CIFSPOSIXDelFile(const int xid, struct cifs_tcon *tcon, const char *fileName, |
800 | __u16 type, const struct nls_table *nls_codepage, int remap) | 800 | __u16 type, const struct nls_table *nls_codepage, int remap) |
801 | { | 801 | { |
802 | TRANSACTION2_SPI_REQ *pSMB = NULL; | 802 | TRANSACTION2_SPI_REQ *pSMB = NULL; |
@@ -871,7 +871,7 @@ PsxDelete: | |||
871 | } | 871 | } |
872 | 872 | ||
873 | int | 873 | int |
874 | CIFSSMBDelFile(const int xid, struct cifsTconInfo *tcon, const char *fileName, | 874 | CIFSSMBDelFile(const int xid, struct cifs_tcon *tcon, const char *fileName, |
875 | const struct nls_table *nls_codepage, int remap) | 875 | const struct nls_table *nls_codepage, int remap) |
876 | { | 876 | { |
877 | DELETE_FILE_REQ *pSMB = NULL; | 877 | DELETE_FILE_REQ *pSMB = NULL; |
@@ -916,7 +916,7 @@ DelFileRetry: | |||
916 | } | 916 | } |
917 | 917 | ||
918 | int | 918 | int |
919 | CIFSSMBRmDir(const int xid, struct cifsTconInfo *tcon, const char *dirName, | 919 | CIFSSMBRmDir(const int xid, struct cifs_tcon *tcon, const char *dirName, |
920 | const struct nls_table *nls_codepage, int remap) | 920 | const struct nls_table *nls_codepage, int remap) |
921 | { | 921 | { |
922 | DELETE_DIRECTORY_REQ *pSMB = NULL; | 922 | DELETE_DIRECTORY_REQ *pSMB = NULL; |
@@ -959,7 +959,7 @@ RmDirRetry: | |||
959 | } | 959 | } |
960 | 960 | ||
961 | int | 961 | int |
962 | CIFSSMBMkDir(const int xid, struct cifsTconInfo *tcon, | 962 | CIFSSMBMkDir(const int xid, struct cifs_tcon *tcon, |
963 | const char *name, const struct nls_table *nls_codepage, int remap) | 963 | const char *name, const struct nls_table *nls_codepage, int remap) |
964 | { | 964 | { |
965 | int rc = 0; | 965 | int rc = 0; |
@@ -1002,7 +1002,7 @@ MkDirRetry: | |||
1002 | } | 1002 | } |
1003 | 1003 | ||
1004 | int | 1004 | int |
1005 | CIFSPOSIXCreate(const int xid, struct cifsTconInfo *tcon, __u32 posix_flags, | 1005 | CIFSPOSIXCreate(const int xid, struct cifs_tcon *tcon, __u32 posix_flags, |
1006 | __u64 mode, __u16 *netfid, FILE_UNIX_BASIC_INFO *pRetData, | 1006 | __u64 mode, __u16 *netfid, FILE_UNIX_BASIC_INFO *pRetData, |
1007 | __u32 *pOplock, const char *name, | 1007 | __u32 *pOplock, const char *name, |
1008 | const struct nls_table *nls_codepage, int remap) | 1008 | const struct nls_table *nls_codepage, int remap) |
@@ -1168,7 +1168,7 @@ access_flags_to_smbopen_mode(const int access_flags) | |||
1168 | } | 1168 | } |
1169 | 1169 | ||
1170 | int | 1170 | int |
1171 | SMBLegacyOpen(const int xid, struct cifsTconInfo *tcon, | 1171 | SMBLegacyOpen(const int xid, struct cifs_tcon *tcon, |
1172 | const char *fileName, const int openDisposition, | 1172 | const char *fileName, const int openDisposition, |
1173 | const int access_flags, const int create_options, __u16 *netfid, | 1173 | const int access_flags, const int create_options, __u16 *netfid, |
1174 | int *pOplock, FILE_ALL_INFO *pfile_info, | 1174 | int *pOplock, FILE_ALL_INFO *pfile_info, |
@@ -1275,7 +1275,7 @@ OldOpenRetry: | |||
1275 | } | 1275 | } |
1276 | 1276 | ||
1277 | int | 1277 | int |
1278 | CIFSSMBOpen(const int xid, struct cifsTconInfo *tcon, | 1278 | CIFSSMBOpen(const int xid, struct cifs_tcon *tcon, |
1279 | const char *fileName, const int openDisposition, | 1279 | const char *fileName, const int openDisposition, |
1280 | const int access_flags, const int create_options, __u16 *netfid, | 1280 | const int access_flags, const int create_options, __u16 *netfid, |
1281 | int *pOplock, FILE_ALL_INFO *pfile_info, | 1281 | int *pOplock, FILE_ALL_INFO *pfile_info, |
@@ -1390,7 +1390,7 @@ CIFSSMBRead(const int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, | |||
1390 | __u32 pid = io_parms->pid; | 1390 | __u32 pid = io_parms->pid; |
1391 | __u16 netfid = io_parms->netfid; | 1391 | __u16 netfid = io_parms->netfid; |
1392 | __u64 offset = io_parms->offset; | 1392 | __u64 offset = io_parms->offset; |
1393 | struct cifsTconInfo *tcon = io_parms->tcon; | 1393 | struct cifs_tcon *tcon = io_parms->tcon; |
1394 | unsigned int count = io_parms->length; | 1394 | unsigned int count = io_parms->length; |
1395 | 1395 | ||
1396 | cFYI(1, "Reading %d bytes on fid %d", count, netfid); | 1396 | cFYI(1, "Reading %d bytes on fid %d", count, netfid); |
@@ -1502,7 +1502,7 @@ CIFSSMBWrite(const int xid, struct cifs_io_parms *io_parms, | |||
1502 | __u32 pid = io_parms->pid; | 1502 | __u32 pid = io_parms->pid; |
1503 | __u16 netfid = io_parms->netfid; | 1503 | __u16 netfid = io_parms->netfid; |
1504 | __u64 offset = io_parms->offset; | 1504 | __u64 offset = io_parms->offset; |
1505 | struct cifsTconInfo *tcon = io_parms->tcon; | 1505 | struct cifs_tcon *tcon = io_parms->tcon; |
1506 | unsigned int count = io_parms->length; | 1506 | unsigned int count = io_parms->length; |
1507 | 1507 | ||
1508 | *nbytes = 0; | 1508 | *nbytes = 0; |
@@ -1714,7 +1714,7 @@ static void | |||
1714 | cifs_writev_callback(struct mid_q_entry *mid) | 1714 | cifs_writev_callback(struct mid_q_entry *mid) |
1715 | { | 1715 | { |
1716 | struct cifs_writedata *wdata = mid->callback_data; | 1716 | struct cifs_writedata *wdata = mid->callback_data; |
1717 | struct cifsTconInfo *tcon = tlink_tcon(wdata->cfile->tlink); | 1717 | struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); |
1718 | unsigned int written; | 1718 | unsigned int written; |
1719 | WRITE_RSP *smb = (WRITE_RSP *)mid->resp_buf; | 1719 | WRITE_RSP *smb = (WRITE_RSP *)mid->resp_buf; |
1720 | 1720 | ||
@@ -1763,7 +1763,7 @@ cifs_async_writev(struct cifs_writedata *wdata) | |||
1763 | int i, rc = -EACCES; | 1763 | int i, rc = -EACCES; |
1764 | WRITE_REQ *smb = NULL; | 1764 | WRITE_REQ *smb = NULL; |
1765 | int wct; | 1765 | int wct; |
1766 | struct cifsTconInfo *tcon = tlink_tcon(wdata->cfile->tlink); | 1766 | struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink); |
1767 | struct inode *inode = wdata->cfile->dentry->d_inode; | 1767 | struct inode *inode = wdata->cfile->dentry->d_inode; |
1768 | struct kvec *iov = NULL; | 1768 | struct kvec *iov = NULL; |
1769 | 1769 | ||
@@ -1866,7 +1866,7 @@ CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms, | |||
1866 | __u32 pid = io_parms->pid; | 1866 | __u32 pid = io_parms->pid; |
1867 | __u16 netfid = io_parms->netfid; | 1867 | __u16 netfid = io_parms->netfid; |
1868 | __u64 offset = io_parms->offset; | 1868 | __u64 offset = io_parms->offset; |
1869 | struct cifsTconInfo *tcon = io_parms->tcon; | 1869 | struct cifs_tcon *tcon = io_parms->tcon; |
1870 | unsigned int count = io_parms->length; | 1870 | unsigned int count = io_parms->length; |
1871 | 1871 | ||
1872 | *nbytes = 0; | 1872 | *nbytes = 0; |
@@ -1964,7 +1964,7 @@ CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms, | |||
1964 | 1964 | ||
1965 | 1965 | ||
1966 | int | 1966 | int |
1967 | CIFSSMBLock(const int xid, struct cifsTconInfo *tcon, | 1967 | CIFSSMBLock(const int xid, struct cifs_tcon *tcon, |
1968 | const __u16 smb_file_id, const __u64 len, | 1968 | const __u16 smb_file_id, const __u64 len, |
1969 | const __u64 offset, const __u32 numUnlock, | 1969 | const __u64 offset, const __u32 numUnlock, |
1970 | const __u32 numLock, const __u8 lockType, | 1970 | const __u32 numLock, const __u8 lockType, |
@@ -2034,7 +2034,7 @@ CIFSSMBLock(const int xid, struct cifsTconInfo *tcon, | |||
2034 | } | 2034 | } |
2035 | 2035 | ||
2036 | int | 2036 | int |
2037 | CIFSSMBPosixLock(const int xid, struct cifsTconInfo *tcon, | 2037 | CIFSSMBPosixLock(const int xid, struct cifs_tcon *tcon, |
2038 | const __u16 smb_file_id, const int get_flag, const __u64 len, | 2038 | const __u16 smb_file_id, const int get_flag, const __u64 len, |
2039 | struct file_lock *pLockData, const __u16 lock_type, | 2039 | struct file_lock *pLockData, const __u16 lock_type, |
2040 | const bool waitFlag) | 2040 | const bool waitFlag) |
@@ -2172,7 +2172,7 @@ plk_err_exit: | |||
2172 | 2172 | ||
2173 | 2173 | ||
2174 | int | 2174 | int |
2175 | CIFSSMBClose(const int xid, struct cifsTconInfo *tcon, int smb_file_id) | 2175 | CIFSSMBClose(const int xid, struct cifs_tcon *tcon, int smb_file_id) |
2176 | { | 2176 | { |
2177 | int rc = 0; | 2177 | int rc = 0; |
2178 | CLOSE_REQ *pSMB = NULL; | 2178 | CLOSE_REQ *pSMB = NULL; |
@@ -2205,7 +2205,7 @@ CIFSSMBClose(const int xid, struct cifsTconInfo *tcon, int smb_file_id) | |||
2205 | } | 2205 | } |
2206 | 2206 | ||
2207 | int | 2207 | int |
2208 | CIFSSMBFlush(const int xid, struct cifsTconInfo *tcon, int smb_file_id) | 2208 | CIFSSMBFlush(const int xid, struct cifs_tcon *tcon, int smb_file_id) |
2209 | { | 2209 | { |
2210 | int rc = 0; | 2210 | int rc = 0; |
2211 | FLUSH_REQ *pSMB = NULL; | 2211 | FLUSH_REQ *pSMB = NULL; |
@@ -2226,7 +2226,7 @@ CIFSSMBFlush(const int xid, struct cifsTconInfo *tcon, int smb_file_id) | |||
2226 | } | 2226 | } |
2227 | 2227 | ||
2228 | int | 2228 | int |
2229 | CIFSSMBRename(const int xid, struct cifsTconInfo *tcon, | 2229 | CIFSSMBRename(const int xid, struct cifs_tcon *tcon, |
2230 | const char *fromName, const char *toName, | 2230 | const char *fromName, const char *toName, |
2231 | const struct nls_table *nls_codepage, int remap) | 2231 | const struct nls_table *nls_codepage, int remap) |
2232 | { | 2232 | { |
@@ -2293,7 +2293,7 @@ renameRetry: | |||
2293 | return rc; | 2293 | return rc; |
2294 | } | 2294 | } |
2295 | 2295 | ||
2296 | int CIFSSMBRenameOpenFile(const int xid, struct cifsTconInfo *pTcon, | 2296 | int CIFSSMBRenameOpenFile(const int xid, struct cifs_tcon *pTcon, |
2297 | int netfid, const char *target_name, | 2297 | int netfid, const char *target_name, |
2298 | const struct nls_table *nls_codepage, int remap) | 2298 | const struct nls_table *nls_codepage, int remap) |
2299 | { | 2299 | { |
@@ -2373,7 +2373,7 @@ int CIFSSMBRenameOpenFile(const int xid, struct cifsTconInfo *pTcon, | |||
2373 | } | 2373 | } |
2374 | 2374 | ||
2375 | int | 2375 | int |
2376 | CIFSSMBCopy(const int xid, struct cifsTconInfo *tcon, const char *fromName, | 2376 | CIFSSMBCopy(const int xid, struct cifs_tcon *tcon, const char *fromName, |
2377 | const __u16 target_tid, const char *toName, const int flags, | 2377 | const __u16 target_tid, const char *toName, const int flags, |
2378 | const struct nls_table *nls_codepage, int remap) | 2378 | const struct nls_table *nls_codepage, int remap) |
2379 | { | 2379 | { |
@@ -2441,7 +2441,7 @@ copyRetry: | |||
2441 | } | 2441 | } |
2442 | 2442 | ||
2443 | int | 2443 | int |
2444 | CIFSUnixCreateSymLink(const int xid, struct cifsTconInfo *tcon, | 2444 | CIFSUnixCreateSymLink(const int xid, struct cifs_tcon *tcon, |
2445 | const char *fromName, const char *toName, | 2445 | const char *fromName, const char *toName, |
2446 | const struct nls_table *nls_codepage) | 2446 | const struct nls_table *nls_codepage) |
2447 | { | 2447 | { |
@@ -2530,7 +2530,7 @@ createSymLinkRetry: | |||
2530 | } | 2530 | } |
2531 | 2531 | ||
2532 | int | 2532 | int |
2533 | CIFSUnixCreateHardLink(const int xid, struct cifsTconInfo *tcon, | 2533 | CIFSUnixCreateHardLink(const int xid, struct cifs_tcon *tcon, |
2534 | const char *fromName, const char *toName, | 2534 | const char *fromName, const char *toName, |
2535 | const struct nls_table *nls_codepage, int remap) | 2535 | const struct nls_table *nls_codepage, int remap) |
2536 | { | 2536 | { |
@@ -2615,7 +2615,7 @@ createHardLinkRetry: | |||
2615 | } | 2615 | } |
2616 | 2616 | ||
2617 | int | 2617 | int |
2618 | CIFSCreateHardLink(const int xid, struct cifsTconInfo *tcon, | 2618 | CIFSCreateHardLink(const int xid, struct cifs_tcon *tcon, |
2619 | const char *fromName, const char *toName, | 2619 | const char *fromName, const char *toName, |
2620 | const struct nls_table *nls_codepage, int remap) | 2620 | const struct nls_table *nls_codepage, int remap) |
2621 | { | 2621 | { |
@@ -2687,7 +2687,7 @@ winCreateHardLinkRetry: | |||
2687 | } | 2687 | } |
2688 | 2688 | ||
2689 | int | 2689 | int |
2690 | CIFSSMBUnixQuerySymLink(const int xid, struct cifsTconInfo *tcon, | 2690 | CIFSSMBUnixQuerySymLink(const int xid, struct cifs_tcon *tcon, |
2691 | const unsigned char *searchName, char **symlinkinfo, | 2691 | const unsigned char *searchName, char **symlinkinfo, |
2692 | const struct nls_table *nls_codepage) | 2692 | const struct nls_table *nls_codepage) |
2693 | { | 2693 | { |
@@ -2792,7 +2792,7 @@ querySymLinkRetry: | |||
2792 | * it is not compiled in by default until callers fixed up and more tested. | 2792 | * it is not compiled in by default until callers fixed up and more tested. |
2793 | */ | 2793 | */ |
2794 | int | 2794 | int |
2795 | CIFSSMBQueryReparseLinkInfo(const int xid, struct cifsTconInfo *tcon, | 2795 | CIFSSMBQueryReparseLinkInfo(const int xid, struct cifs_tcon *tcon, |
2796 | const unsigned char *searchName, | 2796 | const unsigned char *searchName, |
2797 | char *symlinkinfo, const int buflen, __u16 fid, | 2797 | char *symlinkinfo, const int buflen, __u16 fid, |
2798 | const struct nls_table *nls_codepage) | 2798 | const struct nls_table *nls_codepage) |
@@ -3030,7 +3030,7 @@ static __u16 ACL_to_cifs_posix(char *parm_data, const char *pACL, | |||
3030 | } | 3030 | } |
3031 | 3031 | ||
3032 | int | 3032 | int |
3033 | CIFSSMBGetPosixACL(const int xid, struct cifsTconInfo *tcon, | 3033 | CIFSSMBGetPosixACL(const int xid, struct cifs_tcon *tcon, |
3034 | const unsigned char *searchName, | 3034 | const unsigned char *searchName, |
3035 | char *acl_inf, const int buflen, const int acl_type, | 3035 | char *acl_inf, const int buflen, const int acl_type, |
3036 | const struct nls_table *nls_codepage, int remap) | 3036 | const struct nls_table *nls_codepage, int remap) |
@@ -3118,7 +3118,7 @@ queryAclRetry: | |||
3118 | } | 3118 | } |
3119 | 3119 | ||
3120 | int | 3120 | int |
3121 | CIFSSMBSetPosixACL(const int xid, struct cifsTconInfo *tcon, | 3121 | CIFSSMBSetPosixACL(const int xid, struct cifs_tcon *tcon, |
3122 | const unsigned char *fileName, | 3122 | const unsigned char *fileName, |
3123 | const char *local_acl, const int buflen, | 3123 | const char *local_acl, const int buflen, |
3124 | const int acl_type, | 3124 | const int acl_type, |
@@ -3198,7 +3198,7 @@ setACLerrorExit: | |||
3198 | 3198 | ||
3199 | /* BB fix tabs in this function FIXME BB */ | 3199 | /* BB fix tabs in this function FIXME BB */ |
3200 | int | 3200 | int |
3201 | CIFSGetExtAttr(const int xid, struct cifsTconInfo *tcon, | 3201 | CIFSGetExtAttr(const int xid, struct cifs_tcon *tcon, |
3202 | const int netfid, __u64 *pExtAttrBits, __u64 *pMask) | 3202 | const int netfid, __u64 *pExtAttrBits, __u64 *pMask) |
3203 | { | 3203 | { |
3204 | int rc = 0; | 3204 | int rc = 0; |
@@ -3291,7 +3291,7 @@ GetExtAttrOut: | |||
3291 | */ | 3291 | */ |
3292 | static int | 3292 | static int |
3293 | smb_init_nttransact(const __u16 sub_command, const int setup_count, | 3293 | smb_init_nttransact(const __u16 sub_command, const int setup_count, |
3294 | const int parm_len, struct cifsTconInfo *tcon, | 3294 | const int parm_len, struct cifs_tcon *tcon, |
3295 | void **ret_buf) | 3295 | void **ret_buf) |
3296 | { | 3296 | { |
3297 | int rc; | 3297 | int rc; |
@@ -3374,7 +3374,7 @@ validate_ntransact(char *buf, char **ppparm, char **ppdata, | |||
3374 | 3374 | ||
3375 | /* Get Security Descriptor (by handle) from remote server for a file or dir */ | 3375 | /* Get Security Descriptor (by handle) from remote server for a file or dir */ |
3376 | int | 3376 | int |
3377 | CIFSSMBGetCIFSACL(const int xid, struct cifsTconInfo *tcon, __u16 fid, | 3377 | CIFSSMBGetCIFSACL(const int xid, struct cifs_tcon *tcon, __u16 fid, |
3378 | struct cifs_ntsd **acl_inf, __u32 *pbuflen) | 3378 | struct cifs_ntsd **acl_inf, __u32 *pbuflen) |
3379 | { | 3379 | { |
3380 | int rc = 0; | 3380 | int rc = 0; |
@@ -3466,7 +3466,7 @@ qsec_out: | |||
3466 | } | 3466 | } |
3467 | 3467 | ||
3468 | int | 3468 | int |
3469 | CIFSSMBSetCIFSACL(const int xid, struct cifsTconInfo *tcon, __u16 fid, | 3469 | CIFSSMBSetCIFSACL(const int xid, struct cifs_tcon *tcon, __u16 fid, |
3470 | struct cifs_ntsd *pntsd, __u32 acllen) | 3470 | struct cifs_ntsd *pntsd, __u32 acllen) |
3471 | { | 3471 | { |
3472 | __u16 byte_count, param_count, data_count, param_offset, data_offset; | 3472 | __u16 byte_count, param_count, data_count, param_offset, data_offset; |
@@ -3532,7 +3532,7 @@ setCifsAclRetry: | |||
3532 | 3532 | ||
3533 | /* Legacy Query Path Information call for lookup to old servers such | 3533 | /* Legacy Query Path Information call for lookup to old servers such |
3534 | as Win9x/WinME */ | 3534 | as Win9x/WinME */ |
3535 | int SMBQueryInformation(const int xid, struct cifsTconInfo *tcon, | 3535 | int SMBQueryInformation(const int xid, struct cifs_tcon *tcon, |
3536 | const unsigned char *searchName, | 3536 | const unsigned char *searchName, |
3537 | FILE_ALL_INFO *pFinfo, | 3537 | FILE_ALL_INFO *pFinfo, |
3538 | const struct nls_table *nls_codepage, int remap) | 3538 | const struct nls_table *nls_codepage, int remap) |
@@ -3600,7 +3600,7 @@ QInfRetry: | |||
3600 | } | 3600 | } |
3601 | 3601 | ||
3602 | int | 3602 | int |
3603 | CIFSSMBQFileInfo(const int xid, struct cifsTconInfo *tcon, | 3603 | CIFSSMBQFileInfo(const int xid, struct cifs_tcon *tcon, |
3604 | u16 netfid, FILE_ALL_INFO *pFindData) | 3604 | u16 netfid, FILE_ALL_INFO *pFindData) |
3605 | { | 3605 | { |
3606 | struct smb_t2_qfi_req *pSMB = NULL; | 3606 | struct smb_t2_qfi_req *pSMB = NULL; |
@@ -3667,7 +3667,7 @@ QFileInfoRetry: | |||
3667 | } | 3667 | } |
3668 | 3668 | ||
3669 | int | 3669 | int |
3670 | CIFSSMBQPathInfo(const int xid, struct cifsTconInfo *tcon, | 3670 | CIFSSMBQPathInfo(const int xid, struct cifs_tcon *tcon, |
3671 | const unsigned char *searchName, | 3671 | const unsigned char *searchName, |
3672 | FILE_ALL_INFO *pFindData, | 3672 | FILE_ALL_INFO *pFindData, |
3673 | int legacy /* old style infolevel */, | 3673 | int legacy /* old style infolevel */, |
@@ -3768,7 +3768,7 @@ QPathInfoRetry: | |||
3768 | } | 3768 | } |
3769 | 3769 | ||
3770 | int | 3770 | int |
3771 | CIFSSMBUnixQFileInfo(const int xid, struct cifsTconInfo *tcon, | 3771 | CIFSSMBUnixQFileInfo(const int xid, struct cifs_tcon *tcon, |
3772 | u16 netfid, FILE_UNIX_BASIC_INFO *pFindData) | 3772 | u16 netfid, FILE_UNIX_BASIC_INFO *pFindData) |
3773 | { | 3773 | { |
3774 | struct smb_t2_qfi_req *pSMB = NULL; | 3774 | struct smb_t2_qfi_req *pSMB = NULL; |
@@ -3837,7 +3837,7 @@ UnixQFileInfoRetry: | |||
3837 | } | 3837 | } |
3838 | 3838 | ||
3839 | int | 3839 | int |
3840 | CIFSSMBUnixQPathInfo(const int xid, struct cifsTconInfo *tcon, | 3840 | CIFSSMBUnixQPathInfo(const int xid, struct cifs_tcon *tcon, |
3841 | const unsigned char *searchName, | 3841 | const unsigned char *searchName, |
3842 | FILE_UNIX_BASIC_INFO *pFindData, | 3842 | FILE_UNIX_BASIC_INFO *pFindData, |
3843 | const struct nls_table *nls_codepage, int remap) | 3843 | const struct nls_table *nls_codepage, int remap) |
@@ -3923,7 +3923,7 @@ UnixQPathInfoRetry: | |||
3923 | 3923 | ||
3924 | /* xid, tcon, searchName and codepage are input parms, rest are returned */ | 3924 | /* xid, tcon, searchName and codepage are input parms, rest are returned */ |
3925 | int | 3925 | int |
3926 | CIFSFindFirst(const int xid, struct cifsTconInfo *tcon, | 3926 | CIFSFindFirst(const int xid, struct cifs_tcon *tcon, |
3927 | const char *searchName, | 3927 | const char *searchName, |
3928 | const struct nls_table *nls_codepage, | 3928 | const struct nls_table *nls_codepage, |
3929 | __u16 *pnetfid, | 3929 | __u16 *pnetfid, |
@@ -4071,7 +4071,7 @@ findFirstRetry: | |||
4071 | return rc; | 4071 | return rc; |
4072 | } | 4072 | } |
4073 | 4073 | ||
4074 | int CIFSFindNext(const int xid, struct cifsTconInfo *tcon, | 4074 | int CIFSFindNext(const int xid, struct cifs_tcon *tcon, |
4075 | __u16 searchHandle, struct cifs_search_info *psrch_inf) | 4075 | __u16 searchHandle, struct cifs_search_info *psrch_inf) |
4076 | { | 4076 | { |
4077 | TRANSACTION2_FNEXT_REQ *pSMB = NULL; | 4077 | TRANSACTION2_FNEXT_REQ *pSMB = NULL; |
@@ -4209,7 +4209,7 @@ FNext2_err_exit: | |||
4209 | } | 4209 | } |
4210 | 4210 | ||
4211 | int | 4211 | int |
4212 | CIFSFindClose(const int xid, struct cifsTconInfo *tcon, | 4212 | CIFSFindClose(const int xid, struct cifs_tcon *tcon, |
4213 | const __u16 searchHandle) | 4213 | const __u16 searchHandle) |
4214 | { | 4214 | { |
4215 | int rc = 0; | 4215 | int rc = 0; |
@@ -4241,7 +4241,7 @@ CIFSFindClose(const int xid, struct cifsTconInfo *tcon, | |||
4241 | } | 4241 | } |
4242 | 4242 | ||
4243 | int | 4243 | int |
4244 | CIFSGetSrvInodeNumber(const int xid, struct cifsTconInfo *tcon, | 4244 | CIFSGetSrvInodeNumber(const int xid, struct cifs_tcon *tcon, |
4245 | const unsigned char *searchName, | 4245 | const unsigned char *searchName, |
4246 | __u64 *inode_number, | 4246 | __u64 *inode_number, |
4247 | const struct nls_table *nls_codepage, int remap) | 4247 | const struct nls_table *nls_codepage, int remap) |
@@ -4443,7 +4443,7 @@ parse_DFS_referrals_exit: | |||
4443 | } | 4443 | } |
4444 | 4444 | ||
4445 | int | 4445 | int |
4446 | CIFSGetDFSRefer(const int xid, struct cifsSesInfo *ses, | 4446 | CIFSGetDFSRefer(const int xid, struct cifs_ses *ses, |
4447 | const unsigned char *searchName, | 4447 | const unsigned char *searchName, |
4448 | struct dfs_info3_param **target_nodes, | 4448 | struct dfs_info3_param **target_nodes, |
4449 | unsigned int *num_of_nodes, | 4449 | unsigned int *num_of_nodes, |
@@ -4492,7 +4492,7 @@ getDFSRetry: | |||
4492 | } | 4492 | } |
4493 | 4493 | ||
4494 | if (ses->server) { | 4494 | if (ses->server) { |
4495 | if (ses->server->secMode & | 4495 | if (ses->server->sec_mode & |
4496 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) | 4496 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) |
4497 | pSMB->hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; | 4497 | pSMB->hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE; |
4498 | } | 4498 | } |
@@ -4557,7 +4557,7 @@ GetDFSRefExit: | |||
4557 | 4557 | ||
4558 | /* Query File System Info such as free space to old servers such as Win 9x */ | 4558 | /* Query File System Info such as free space to old servers such as Win 9x */ |
4559 | int | 4559 | int |
4560 | SMBOldQFSInfo(const int xid, struct cifsTconInfo *tcon, struct kstatfs *FSData) | 4560 | SMBOldQFSInfo(const int xid, struct cifs_tcon *tcon, struct kstatfs *FSData) |
4561 | { | 4561 | { |
4562 | /* level 0x01 SMB_QUERY_FILE_SYSTEM_INFO */ | 4562 | /* level 0x01 SMB_QUERY_FILE_SYSTEM_INFO */ |
4563 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 4563 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -4636,7 +4636,7 @@ oldQFSInfoRetry: | |||
4636 | } | 4636 | } |
4637 | 4637 | ||
4638 | int | 4638 | int |
4639 | CIFSSMBQFSInfo(const int xid, struct cifsTconInfo *tcon, struct kstatfs *FSData) | 4639 | CIFSSMBQFSInfo(const int xid, struct cifs_tcon *tcon, struct kstatfs *FSData) |
4640 | { | 4640 | { |
4641 | /* level 0x103 SMB_QUERY_FILE_SYSTEM_INFO */ | 4641 | /* level 0x103 SMB_QUERY_FILE_SYSTEM_INFO */ |
4642 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 4642 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -4715,7 +4715,7 @@ QFSInfoRetry: | |||
4715 | } | 4715 | } |
4716 | 4716 | ||
4717 | int | 4717 | int |
4718 | CIFSSMBQFSAttributeInfo(const int xid, struct cifsTconInfo *tcon) | 4718 | CIFSSMBQFSAttributeInfo(const int xid, struct cifs_tcon *tcon) |
4719 | { | 4719 | { |
4720 | /* level 0x105 SMB_QUERY_FILE_SYSTEM_INFO */ | 4720 | /* level 0x105 SMB_QUERY_FILE_SYSTEM_INFO */ |
4721 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 4721 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -4785,7 +4785,7 @@ QFSAttributeRetry: | |||
4785 | } | 4785 | } |
4786 | 4786 | ||
4787 | int | 4787 | int |
4788 | CIFSSMBQFSDeviceInfo(const int xid, struct cifsTconInfo *tcon) | 4788 | CIFSSMBQFSDeviceInfo(const int xid, struct cifs_tcon *tcon) |
4789 | { | 4789 | { |
4790 | /* level 0x104 SMB_QUERY_FILE_SYSTEM_INFO */ | 4790 | /* level 0x104 SMB_QUERY_FILE_SYSTEM_INFO */ |
4791 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 4791 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -4856,7 +4856,7 @@ QFSDeviceRetry: | |||
4856 | } | 4856 | } |
4857 | 4857 | ||
4858 | int | 4858 | int |
4859 | CIFSSMBQFSUnixInfo(const int xid, struct cifsTconInfo *tcon) | 4859 | CIFSSMBQFSUnixInfo(const int xid, struct cifs_tcon *tcon) |
4860 | { | 4860 | { |
4861 | /* level 0x200 SMB_QUERY_CIFS_UNIX_INFO */ | 4861 | /* level 0x200 SMB_QUERY_CIFS_UNIX_INFO */ |
4862 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 4862 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -4926,7 +4926,7 @@ QFSUnixRetry: | |||
4926 | } | 4926 | } |
4927 | 4927 | ||
4928 | int | 4928 | int |
4929 | CIFSSMBSetFSUnixInfo(const int xid, struct cifsTconInfo *tcon, __u64 cap) | 4929 | CIFSSMBSetFSUnixInfo(const int xid, struct cifs_tcon *tcon, __u64 cap) |
4930 | { | 4930 | { |
4931 | /* level 0x200 SMB_SET_CIFS_UNIX_INFO */ | 4931 | /* level 0x200 SMB_SET_CIFS_UNIX_INFO */ |
4932 | TRANSACTION2_SETFSI_REQ *pSMB = NULL; | 4932 | TRANSACTION2_SETFSI_REQ *pSMB = NULL; |
@@ -5000,7 +5000,7 @@ SETFSUnixRetry: | |||
5000 | 5000 | ||
5001 | 5001 | ||
5002 | int | 5002 | int |
5003 | CIFSSMBQFSPosixInfo(const int xid, struct cifsTconInfo *tcon, | 5003 | CIFSSMBQFSPosixInfo(const int xid, struct cifs_tcon *tcon, |
5004 | struct kstatfs *FSData) | 5004 | struct kstatfs *FSData) |
5005 | { | 5005 | { |
5006 | /* level 0x201 SMB_QUERY_CIFS_POSIX_INFO */ | 5006 | /* level 0x201 SMB_QUERY_CIFS_POSIX_INFO */ |
@@ -5093,7 +5093,7 @@ QFSPosixRetry: | |||
5093 | in Samba which this routine can run into */ | 5093 | in Samba which this routine can run into */ |
5094 | 5094 | ||
5095 | int | 5095 | int |
5096 | CIFSSMBSetEOF(const int xid, struct cifsTconInfo *tcon, const char *fileName, | 5096 | CIFSSMBSetEOF(const int xid, struct cifs_tcon *tcon, const char *fileName, |
5097 | __u64 size, bool SetAllocation, | 5097 | __u64 size, bool SetAllocation, |
5098 | const struct nls_table *nls_codepage, int remap) | 5098 | const struct nls_table *nls_codepage, int remap) |
5099 | { | 5099 | { |
@@ -5182,7 +5182,7 @@ SetEOFRetry: | |||
5182 | } | 5182 | } |
5183 | 5183 | ||
5184 | int | 5184 | int |
5185 | CIFSSMBSetFileSize(const int xid, struct cifsTconInfo *tcon, __u64 size, | 5185 | CIFSSMBSetFileSize(const int xid, struct cifs_tcon *tcon, __u64 size, |
5186 | __u16 fid, __u32 pid_of_opener, bool SetAllocation) | 5186 | __u16 fid, __u32 pid_of_opener, bool SetAllocation) |
5187 | { | 5187 | { |
5188 | struct smb_com_transaction2_sfi_req *pSMB = NULL; | 5188 | struct smb_com_transaction2_sfi_req *pSMB = NULL; |
@@ -5264,7 +5264,7 @@ CIFSSMBSetFileSize(const int xid, struct cifsTconInfo *tcon, __u64 size, | |||
5264 | time and resort to the original setpathinfo level which takes the ancient | 5264 | time and resort to the original setpathinfo level which takes the ancient |
5265 | DOS time format with 2 second granularity */ | 5265 | DOS time format with 2 second granularity */ |
5266 | int | 5266 | int |
5267 | CIFSSMBSetFileInfo(const int xid, struct cifsTconInfo *tcon, | 5267 | CIFSSMBSetFileInfo(const int xid, struct cifs_tcon *tcon, |
5268 | const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener) | 5268 | const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener) |
5269 | { | 5269 | { |
5270 | struct smb_com_transaction2_sfi_req *pSMB = NULL; | 5270 | struct smb_com_transaction2_sfi_req *pSMB = NULL; |
@@ -5326,7 +5326,7 @@ CIFSSMBSetFileInfo(const int xid, struct cifsTconInfo *tcon, | |||
5326 | } | 5326 | } |
5327 | 5327 | ||
5328 | int | 5328 | int |
5329 | CIFSSMBSetFileDisposition(const int xid, struct cifsTconInfo *tcon, | 5329 | CIFSSMBSetFileDisposition(const int xid, struct cifs_tcon *tcon, |
5330 | bool delete_file, __u16 fid, __u32 pid_of_opener) | 5330 | bool delete_file, __u16 fid, __u32 pid_of_opener) |
5331 | { | 5331 | { |
5332 | struct smb_com_transaction2_sfi_req *pSMB = NULL; | 5332 | struct smb_com_transaction2_sfi_req *pSMB = NULL; |
@@ -5382,7 +5382,7 @@ CIFSSMBSetFileDisposition(const int xid, struct cifsTconInfo *tcon, | |||
5382 | } | 5382 | } |
5383 | 5383 | ||
5384 | int | 5384 | int |
5385 | CIFSSMBSetPathInfo(const int xid, struct cifsTconInfo *tcon, | 5385 | CIFSSMBSetPathInfo(const int xid, struct cifs_tcon *tcon, |
5386 | const char *fileName, const FILE_BASIC_INFO *data, | 5386 | const char *fileName, const FILE_BASIC_INFO *data, |
5387 | const struct nls_table *nls_codepage, int remap) | 5387 | const struct nls_table *nls_codepage, int remap) |
5388 | { | 5388 | { |
@@ -5466,7 +5466,7 @@ SetTimesRetry: | |||
5466 | handling it anyway and NT4 was what we thought it would be needed for | 5466 | handling it anyway and NT4 was what we thought it would be needed for |
5467 | Do not delete it until we prove whether needed for Win9x though */ | 5467 | Do not delete it until we prove whether needed for Win9x though */ |
5468 | int | 5468 | int |
5469 | CIFSSMBSetAttrLegacy(int xid, struct cifsTconInfo *tcon, char *fileName, | 5469 | CIFSSMBSetAttrLegacy(int xid, struct cifs_tcon *tcon, char *fileName, |
5470 | __u16 dos_attrs, const struct nls_table *nls_codepage) | 5470 | __u16 dos_attrs, const struct nls_table *nls_codepage) |
5471 | { | 5471 | { |
5472 | SETATTR_REQ *pSMB = NULL; | 5472 | SETATTR_REQ *pSMB = NULL; |
@@ -5554,7 +5554,7 @@ cifs_fill_unix_set_info(FILE_UNIX_BASIC_INFO *data_offset, | |||
5554 | } | 5554 | } |
5555 | 5555 | ||
5556 | int | 5556 | int |
5557 | CIFSSMBUnixSetFileInfo(const int xid, struct cifsTconInfo *tcon, | 5557 | CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon, |
5558 | const struct cifs_unix_set_info_args *args, | 5558 | const struct cifs_unix_set_info_args *args, |
5559 | u16 fid, u32 pid_of_opener) | 5559 | u16 fid, u32 pid_of_opener) |
5560 | { | 5560 | { |
@@ -5617,7 +5617,7 @@ CIFSSMBUnixSetFileInfo(const int xid, struct cifsTconInfo *tcon, | |||
5617 | } | 5617 | } |
5618 | 5618 | ||
5619 | int | 5619 | int |
5620 | CIFSSMBUnixSetPathInfo(const int xid, struct cifsTconInfo *tcon, char *fileName, | 5620 | CIFSSMBUnixSetPathInfo(const int xid, struct cifs_tcon *tcon, char *fileName, |
5621 | const struct cifs_unix_set_info_args *args, | 5621 | const struct cifs_unix_set_info_args *args, |
5622 | const struct nls_table *nls_codepage, int remap) | 5622 | const struct nls_table *nls_codepage, int remap) |
5623 | { | 5623 | { |
@@ -5704,7 +5704,7 @@ setPermsRetry: | |||
5704 | * the data isn't copied to it, but the length is returned. | 5704 | * the data isn't copied to it, but the length is returned. |
5705 | */ | 5705 | */ |
5706 | ssize_t | 5706 | ssize_t |
5707 | CIFSSMBQAllEAs(const int xid, struct cifsTconInfo *tcon, | 5707 | CIFSSMBQAllEAs(const int xid, struct cifs_tcon *tcon, |
5708 | const unsigned char *searchName, const unsigned char *ea_name, | 5708 | const unsigned char *searchName, const unsigned char *ea_name, |
5709 | char *EAData, size_t buf_size, | 5709 | char *EAData, size_t buf_size, |
5710 | const struct nls_table *nls_codepage, int remap) | 5710 | const struct nls_table *nls_codepage, int remap) |
@@ -5885,7 +5885,7 @@ QAllEAsOut: | |||
5885 | } | 5885 | } |
5886 | 5886 | ||
5887 | int | 5887 | int |
5888 | CIFSSMBSetEA(const int xid, struct cifsTconInfo *tcon, const char *fileName, | 5888 | CIFSSMBSetEA(const int xid, struct cifs_tcon *tcon, const char *fileName, |
5889 | const char *ea_name, const void *ea_value, | 5889 | const char *ea_name, const void *ea_value, |
5890 | const __u16 ea_value_len, const struct nls_table *nls_codepage, | 5890 | const __u16 ea_value_len, const struct nls_table *nls_codepage, |
5891 | int remap) | 5891 | int remap) |
@@ -6012,7 +6012,7 @@ SetEARetry: | |||
6012 | * incompatible for network fs clients, we could instead simply | 6012 | * incompatible for network fs clients, we could instead simply |
6013 | * expose this config flag by adding a future cifs (and smb2) notify ioctl. | 6013 | * expose this config flag by adding a future cifs (and smb2) notify ioctl. |
6014 | */ | 6014 | */ |
6015 | int CIFSSMBNotify(const int xid, struct cifsTconInfo *tcon, | 6015 | int CIFSSMBNotify(const int xid, struct cifs_tcon *tcon, |
6016 | const int notify_subdirs, const __u16 netfid, | 6016 | const int notify_subdirs, const __u16 netfid, |
6017 | __u32 filter, struct file *pfile, int multishot, | 6017 | __u32 filter, struct file *pfile, int multishot, |
6018 | const struct nls_table *nls_codepage) | 6018 | const struct nls_table *nls_codepage) |