diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 146 |
1 files changed, 77 insertions, 69 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 98fc454827af..7a3b4a3b113b 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -828,8 +828,9 @@ session_already_dead: | |||
828 | } | 828 | } |
829 | 829 | ||
830 | int | 830 | int |
831 | CIFSPOSIXDelFile(const int xid, struct cifs_tcon *tcon, const char *fileName, | 831 | CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon, |
832 | __u16 type, const struct nls_table *nls_codepage, int remap) | 832 | const char *fileName, __u16 type, |
833 | const struct nls_table *nls_codepage, int remap) | ||
833 | { | 834 | { |
834 | TRANSACTION2_SPI_REQ *pSMB = NULL; | 835 | TRANSACTION2_SPI_REQ *pSMB = NULL; |
835 | TRANSACTION2_SPI_RSP *pSMBr = NULL; | 836 | TRANSACTION2_SPI_RSP *pSMBr = NULL; |
@@ -903,8 +904,9 @@ PsxDelete: | |||
903 | } | 904 | } |
904 | 905 | ||
905 | int | 906 | int |
906 | CIFSSMBDelFile(const int xid, struct cifs_tcon *tcon, const char *fileName, | 907 | CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon, |
907 | const struct nls_table *nls_codepage, int remap) | 908 | const char *fileName, const struct nls_table *nls_codepage, |
909 | int remap) | ||
908 | { | 910 | { |
909 | DELETE_FILE_REQ *pSMB = NULL; | 911 | DELETE_FILE_REQ *pSMB = NULL; |
910 | DELETE_FILE_RSP *pSMBr = NULL; | 912 | DELETE_FILE_RSP *pSMBr = NULL; |
@@ -948,8 +950,9 @@ DelFileRetry: | |||
948 | } | 950 | } |
949 | 951 | ||
950 | int | 952 | int |
951 | CIFSSMBRmDir(const int xid, struct cifs_tcon *tcon, const char *dirName, | 953 | CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon, |
952 | const struct nls_table *nls_codepage, int remap) | 954 | const char *dirName, const struct nls_table *nls_codepage, |
955 | int remap) | ||
953 | { | 956 | { |
954 | DELETE_DIRECTORY_REQ *pSMB = NULL; | 957 | DELETE_DIRECTORY_REQ *pSMB = NULL; |
955 | DELETE_DIRECTORY_RSP *pSMBr = NULL; | 958 | DELETE_DIRECTORY_RSP *pSMBr = NULL; |
@@ -991,7 +994,7 @@ RmDirRetry: | |||
991 | } | 994 | } |
992 | 995 | ||
993 | int | 996 | int |
994 | CIFSSMBMkDir(const int xid, struct cifs_tcon *tcon, | 997 | CIFSSMBMkDir(const unsigned int xid, struct cifs_tcon *tcon, |
995 | const char *name, const struct nls_table *nls_codepage, int remap) | 998 | const char *name, const struct nls_table *nls_codepage, int remap) |
996 | { | 999 | { |
997 | int rc = 0; | 1000 | int rc = 0; |
@@ -1034,10 +1037,11 @@ MkDirRetry: | |||
1034 | } | 1037 | } |
1035 | 1038 | ||
1036 | int | 1039 | int |
1037 | CIFSPOSIXCreate(const int xid, struct cifs_tcon *tcon, __u32 posix_flags, | 1040 | CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon, |
1038 | __u64 mode, __u16 *netfid, FILE_UNIX_BASIC_INFO *pRetData, | 1041 | __u32 posix_flags, __u64 mode, __u16 *netfid, |
1039 | __u32 *pOplock, const char *name, | 1042 | FILE_UNIX_BASIC_INFO *pRetData, __u32 *pOplock, |
1040 | const struct nls_table *nls_codepage, int remap) | 1043 | const char *name, const struct nls_table *nls_codepage, |
1044 | int remap) | ||
1041 | { | 1045 | { |
1042 | TRANSACTION2_SPI_REQ *pSMB = NULL; | 1046 | TRANSACTION2_SPI_REQ *pSMB = NULL; |
1043 | TRANSACTION2_SPI_RSP *pSMBr = NULL; | 1047 | TRANSACTION2_SPI_RSP *pSMBr = NULL; |
@@ -1200,7 +1204,7 @@ access_flags_to_smbopen_mode(const int access_flags) | |||
1200 | } | 1204 | } |
1201 | 1205 | ||
1202 | int | 1206 | int |
1203 | SMBLegacyOpen(const int xid, struct cifs_tcon *tcon, | 1207 | SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon, |
1204 | const char *fileName, const int openDisposition, | 1208 | const char *fileName, const int openDisposition, |
1205 | const int access_flags, const int create_options, __u16 *netfid, | 1209 | const int access_flags, const int create_options, __u16 *netfid, |
1206 | int *pOplock, FILE_ALL_INFO *pfile_info, | 1210 | int *pOplock, FILE_ALL_INFO *pfile_info, |
@@ -1307,7 +1311,7 @@ OldOpenRetry: | |||
1307 | } | 1311 | } |
1308 | 1312 | ||
1309 | int | 1313 | int |
1310 | CIFSSMBOpen(const int xid, struct cifs_tcon *tcon, | 1314 | CIFSSMBOpen(const unsigned int xid, struct cifs_tcon *tcon, |
1311 | const char *fileName, const int openDisposition, | 1315 | const char *fileName, const int openDisposition, |
1312 | const int access_flags, const int create_options, __u16 *netfid, | 1316 | const int access_flags, const int create_options, __u16 *netfid, |
1313 | int *pOplock, FILE_ALL_INFO *pfile_info, | 1317 | int *pOplock, FILE_ALL_INFO *pfile_info, |
@@ -1657,8 +1661,8 @@ cifs_async_readv(struct cifs_readdata *rdata) | |||
1657 | } | 1661 | } |
1658 | 1662 | ||
1659 | int | 1663 | int |
1660 | CIFSSMBRead(const int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, | 1664 | CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms, |
1661 | char **buf, int *pbuf_type) | 1665 | unsigned int *nbytes, char **buf, int *pbuf_type) |
1662 | { | 1666 | { |
1663 | int rc = -EACCES; | 1667 | int rc = -EACCES; |
1664 | READ_REQ *pSMB = NULL; | 1668 | READ_REQ *pSMB = NULL; |
@@ -1769,7 +1773,7 @@ CIFSSMBRead(const int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, | |||
1769 | 1773 | ||
1770 | 1774 | ||
1771 | int | 1775 | int |
1772 | CIFSSMBWrite(const int xid, struct cifs_io_parms *io_parms, | 1776 | CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms, |
1773 | unsigned int *nbytes, const char *buf, | 1777 | unsigned int *nbytes, const char *buf, |
1774 | const char __user *ubuf, const int long_op) | 1778 | const char __user *ubuf, const int long_op) |
1775 | { | 1779 | { |
@@ -2136,7 +2140,7 @@ async_writev_out: | |||
2136 | } | 2140 | } |
2137 | 2141 | ||
2138 | int | 2142 | int |
2139 | CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms, | 2143 | CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, |
2140 | unsigned int *nbytes, struct kvec *iov, int n_vec, | 2144 | unsigned int *nbytes, struct kvec *iov, int n_vec, |
2141 | const int long_op) | 2145 | const int long_op) |
2142 | { | 2146 | { |
@@ -2244,8 +2248,8 @@ CIFSSMBWrite2(const int xid, struct cifs_io_parms *io_parms, | |||
2244 | return rc; | 2248 | return rc; |
2245 | } | 2249 | } |
2246 | 2250 | ||
2247 | int cifs_lockv(const int xid, struct cifs_tcon *tcon, const __u16 netfid, | 2251 | int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon, |
2248 | const __u8 lock_type, const __u32 num_unlock, | 2252 | const __u16 netfid, const __u8 lock_type, const __u32 num_unlock, |
2249 | const __u32 num_lock, LOCKING_ANDX_RANGE *buf) | 2253 | const __u32 num_lock, LOCKING_ANDX_RANGE *buf) |
2250 | { | 2254 | { |
2251 | int rc = 0; | 2255 | int rc = 0; |
@@ -2286,7 +2290,7 @@ int cifs_lockv(const int xid, struct cifs_tcon *tcon, const __u16 netfid, | |||
2286 | } | 2290 | } |
2287 | 2291 | ||
2288 | int | 2292 | int |
2289 | CIFSSMBLock(const int xid, struct cifs_tcon *tcon, | 2293 | CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon, |
2290 | const __u16 smb_file_id, const __u32 netpid, const __u64 len, | 2294 | const __u16 smb_file_id, const __u32 netpid, const __u64 len, |
2291 | const __u64 offset, const __u32 numUnlock, | 2295 | const __u64 offset, const __u32 numUnlock, |
2292 | const __u32 numLock, const __u8 lockType, | 2296 | const __u32 numLock, const __u8 lockType, |
@@ -2356,7 +2360,7 @@ CIFSSMBLock(const int xid, struct cifs_tcon *tcon, | |||
2356 | } | 2360 | } |
2357 | 2361 | ||
2358 | int | 2362 | int |
2359 | CIFSSMBPosixLock(const int xid, struct cifs_tcon *tcon, | 2363 | CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon, |
2360 | const __u16 smb_file_id, const __u32 netpid, | 2364 | const __u16 smb_file_id, const __u32 netpid, |
2361 | const loff_t start_offset, const __u64 len, | 2365 | const loff_t start_offset, const __u64 len, |
2362 | struct file_lock *pLockData, const __u16 lock_type, | 2366 | struct file_lock *pLockData, const __u16 lock_type, |
@@ -2492,7 +2496,7 @@ plk_err_exit: | |||
2492 | 2496 | ||
2493 | 2497 | ||
2494 | int | 2498 | int |
2495 | CIFSSMBClose(const int xid, struct cifs_tcon *tcon, int smb_file_id) | 2499 | CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id) |
2496 | { | 2500 | { |
2497 | int rc = 0; | 2501 | int rc = 0; |
2498 | CLOSE_REQ *pSMB = NULL; | 2502 | CLOSE_REQ *pSMB = NULL; |
@@ -2525,7 +2529,7 @@ CIFSSMBClose(const int xid, struct cifs_tcon *tcon, int smb_file_id) | |||
2525 | } | 2529 | } |
2526 | 2530 | ||
2527 | int | 2531 | int |
2528 | CIFSSMBFlush(const int xid, struct cifs_tcon *tcon, int smb_file_id) | 2532 | CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon, int smb_file_id) |
2529 | { | 2533 | { |
2530 | int rc = 0; | 2534 | int rc = 0; |
2531 | FLUSH_REQ *pSMB = NULL; | 2535 | FLUSH_REQ *pSMB = NULL; |
@@ -2546,7 +2550,7 @@ CIFSSMBFlush(const int xid, struct cifs_tcon *tcon, int smb_file_id) | |||
2546 | } | 2550 | } |
2547 | 2551 | ||
2548 | int | 2552 | int |
2549 | CIFSSMBRename(const int xid, struct cifs_tcon *tcon, | 2553 | CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon, |
2550 | const char *fromName, const char *toName, | 2554 | const char *fromName, const char *toName, |
2551 | const struct nls_table *nls_codepage, int remap) | 2555 | const struct nls_table *nls_codepage, int remap) |
2552 | { | 2556 | { |
@@ -2613,7 +2617,7 @@ renameRetry: | |||
2613 | return rc; | 2617 | return rc; |
2614 | } | 2618 | } |
2615 | 2619 | ||
2616 | int CIFSSMBRenameOpenFile(const int xid, struct cifs_tcon *pTcon, | 2620 | int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *pTcon, |
2617 | int netfid, const char *target_name, | 2621 | int netfid, const char *target_name, |
2618 | const struct nls_table *nls_codepage, int remap) | 2622 | const struct nls_table *nls_codepage, int remap) |
2619 | { | 2623 | { |
@@ -2695,9 +2699,9 @@ int CIFSSMBRenameOpenFile(const int xid, struct cifs_tcon *pTcon, | |||
2695 | } | 2699 | } |
2696 | 2700 | ||
2697 | int | 2701 | int |
2698 | CIFSSMBCopy(const int xid, struct cifs_tcon *tcon, const char *fromName, | 2702 | CIFSSMBCopy(const unsigned int xid, struct cifs_tcon *tcon, |
2699 | const __u16 target_tid, const char *toName, const int flags, | 2703 | const char *fromName, const __u16 target_tid, const char *toName, |
2700 | const struct nls_table *nls_codepage, int remap) | 2704 | const int flags, const struct nls_table *nls_codepage, int remap) |
2701 | { | 2705 | { |
2702 | int rc = 0; | 2706 | int rc = 0; |
2703 | COPY_REQ *pSMB = NULL; | 2707 | COPY_REQ *pSMB = NULL; |
@@ -2763,7 +2767,7 @@ copyRetry: | |||
2763 | } | 2767 | } |
2764 | 2768 | ||
2765 | int | 2769 | int |
2766 | CIFSUnixCreateSymLink(const int xid, struct cifs_tcon *tcon, | 2770 | CIFSUnixCreateSymLink(const unsigned int xid, struct cifs_tcon *tcon, |
2767 | const char *fromName, const char *toName, | 2771 | const char *fromName, const char *toName, |
2768 | const struct nls_table *nls_codepage) | 2772 | const struct nls_table *nls_codepage) |
2769 | { | 2773 | { |
@@ -2852,7 +2856,7 @@ createSymLinkRetry: | |||
2852 | } | 2856 | } |
2853 | 2857 | ||
2854 | int | 2858 | int |
2855 | CIFSUnixCreateHardLink(const int xid, struct cifs_tcon *tcon, | 2859 | CIFSUnixCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon, |
2856 | const char *fromName, const char *toName, | 2860 | const char *fromName, const char *toName, |
2857 | const struct nls_table *nls_codepage, int remap) | 2861 | const struct nls_table *nls_codepage, int remap) |
2858 | { | 2862 | { |
@@ -2937,7 +2941,7 @@ createHardLinkRetry: | |||
2937 | } | 2941 | } |
2938 | 2942 | ||
2939 | int | 2943 | int |
2940 | CIFSCreateHardLink(const int xid, struct cifs_tcon *tcon, | 2944 | CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon, |
2941 | const char *fromName, const char *toName, | 2945 | const char *fromName, const char *toName, |
2942 | const struct nls_table *nls_codepage, int remap) | 2946 | const struct nls_table *nls_codepage, int remap) |
2943 | { | 2947 | { |
@@ -3009,7 +3013,7 @@ winCreateHardLinkRetry: | |||
3009 | } | 3013 | } |
3010 | 3014 | ||
3011 | int | 3015 | int |
3012 | CIFSSMBUnixQuerySymLink(const int xid, struct cifs_tcon *tcon, | 3016 | CIFSSMBUnixQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon, |
3013 | const unsigned char *searchName, char **symlinkinfo, | 3017 | const unsigned char *searchName, char **symlinkinfo, |
3014 | const struct nls_table *nls_codepage) | 3018 | const struct nls_table *nls_codepage) |
3015 | { | 3019 | { |
@@ -3114,7 +3118,7 @@ querySymLinkRetry: | |||
3114 | * it is not compiled in by default until callers fixed up and more tested. | 3118 | * it is not compiled in by default until callers fixed up and more tested. |
3115 | */ | 3119 | */ |
3116 | int | 3120 | int |
3117 | CIFSSMBQueryReparseLinkInfo(const int xid, struct cifs_tcon *tcon, | 3121 | CIFSSMBQueryReparseLinkInfo(const unsigned int xid, struct cifs_tcon *tcon, |
3118 | const unsigned char *searchName, | 3122 | const unsigned char *searchName, |
3119 | char *symlinkinfo, const int buflen, __u16 fid, | 3123 | char *symlinkinfo, const int buflen, __u16 fid, |
3120 | const struct nls_table *nls_codepage) | 3124 | const struct nls_table *nls_codepage) |
@@ -3351,7 +3355,7 @@ static __u16 ACL_to_cifs_posix(char *parm_data, const char *pACL, | |||
3351 | } | 3355 | } |
3352 | 3356 | ||
3353 | int | 3357 | int |
3354 | CIFSSMBGetPosixACL(const int xid, struct cifs_tcon *tcon, | 3358 | CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon, |
3355 | const unsigned char *searchName, | 3359 | const unsigned char *searchName, |
3356 | char *acl_inf, const int buflen, const int acl_type, | 3360 | char *acl_inf, const int buflen, const int acl_type, |
3357 | const struct nls_table *nls_codepage, int remap) | 3361 | const struct nls_table *nls_codepage, int remap) |
@@ -3440,7 +3444,7 @@ queryAclRetry: | |||
3440 | } | 3444 | } |
3441 | 3445 | ||
3442 | int | 3446 | int |
3443 | CIFSSMBSetPosixACL(const int xid, struct cifs_tcon *tcon, | 3447 | CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon, |
3444 | const unsigned char *fileName, | 3448 | const unsigned char *fileName, |
3445 | const char *local_acl, const int buflen, | 3449 | const char *local_acl, const int buflen, |
3446 | const int acl_type, | 3450 | const int acl_type, |
@@ -3520,7 +3524,7 @@ setACLerrorExit: | |||
3520 | 3524 | ||
3521 | /* BB fix tabs in this function FIXME BB */ | 3525 | /* BB fix tabs in this function FIXME BB */ |
3522 | int | 3526 | int |
3523 | CIFSGetExtAttr(const int xid, struct cifs_tcon *tcon, | 3527 | CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon, |
3524 | const int netfid, __u64 *pExtAttrBits, __u64 *pMask) | 3528 | const int netfid, __u64 *pExtAttrBits, __u64 *pMask) |
3525 | { | 3529 | { |
3526 | int rc = 0; | 3530 | int rc = 0; |
@@ -3695,7 +3699,7 @@ validate_ntransact(char *buf, char **ppparm, char **ppdata, | |||
3695 | 3699 | ||
3696 | /* Get Security Descriptor (by handle) from remote server for a file or dir */ | 3700 | /* Get Security Descriptor (by handle) from remote server for a file or dir */ |
3697 | int | 3701 | int |
3698 | CIFSSMBGetCIFSACL(const int xid, struct cifs_tcon *tcon, __u16 fid, | 3702 | CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, |
3699 | struct cifs_ntsd **acl_inf, __u32 *pbuflen) | 3703 | struct cifs_ntsd **acl_inf, __u32 *pbuflen) |
3700 | { | 3704 | { |
3701 | int rc = 0; | 3705 | int rc = 0; |
@@ -3787,7 +3791,7 @@ qsec_out: | |||
3787 | } | 3791 | } |
3788 | 3792 | ||
3789 | int | 3793 | int |
3790 | CIFSSMBSetCIFSACL(const int xid, struct cifs_tcon *tcon, __u16 fid, | 3794 | CIFSSMBSetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon, __u16 fid, |
3791 | struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) | 3795 | struct cifs_ntsd *pntsd, __u32 acllen, int aclflag) |
3792 | { | 3796 | { |
3793 | __u16 byte_count, param_count, data_count, param_offset, data_offset; | 3797 | __u16 byte_count, param_count, data_count, param_offset, data_offset; |
@@ -3851,7 +3855,7 @@ setCifsAclRetry: | |||
3851 | 3855 | ||
3852 | /* Legacy Query Path Information call for lookup to old servers such | 3856 | /* Legacy Query Path Information call for lookup to old servers such |
3853 | as Win9x/WinME */ | 3857 | as Win9x/WinME */ |
3854 | int SMBQueryInformation(const int xid, struct cifs_tcon *tcon, | 3858 | int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon, |
3855 | const unsigned char *searchName, | 3859 | const unsigned char *searchName, |
3856 | FILE_ALL_INFO *pFinfo, | 3860 | FILE_ALL_INFO *pFinfo, |
3857 | const struct nls_table *nls_codepage, int remap) | 3861 | const struct nls_table *nls_codepage, int remap) |
@@ -3920,7 +3924,7 @@ QInfRetry: | |||
3920 | } | 3924 | } |
3921 | 3925 | ||
3922 | int | 3926 | int |
3923 | CIFSSMBQFileInfo(const int xid, struct cifs_tcon *tcon, | 3927 | CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
3924 | u16 netfid, FILE_ALL_INFO *pFindData) | 3928 | u16 netfid, FILE_ALL_INFO *pFindData) |
3925 | { | 3929 | { |
3926 | struct smb_t2_qfi_req *pSMB = NULL; | 3930 | struct smb_t2_qfi_req *pSMB = NULL; |
@@ -3987,7 +3991,7 @@ QFileInfoRetry: | |||
3987 | } | 3991 | } |
3988 | 3992 | ||
3989 | int | 3993 | int |
3990 | CIFSSMBQPathInfo(const int xid, struct cifs_tcon *tcon, | 3994 | CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon, |
3991 | const unsigned char *searchName, | 3995 | const unsigned char *searchName, |
3992 | FILE_ALL_INFO *pFindData, | 3996 | FILE_ALL_INFO *pFindData, |
3993 | int legacy /* old style infolevel */, | 3997 | int legacy /* old style infolevel */, |
@@ -4088,7 +4092,7 @@ QPathInfoRetry: | |||
4088 | } | 4092 | } |
4089 | 4093 | ||
4090 | int | 4094 | int |
4091 | CIFSSMBUnixQFileInfo(const int xid, struct cifs_tcon *tcon, | 4095 | CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
4092 | u16 netfid, FILE_UNIX_BASIC_INFO *pFindData) | 4096 | u16 netfid, FILE_UNIX_BASIC_INFO *pFindData) |
4093 | { | 4097 | { |
4094 | struct smb_t2_qfi_req *pSMB = NULL; | 4098 | struct smb_t2_qfi_req *pSMB = NULL; |
@@ -4157,7 +4161,7 @@ UnixQFileInfoRetry: | |||
4157 | } | 4161 | } |
4158 | 4162 | ||
4159 | int | 4163 | int |
4160 | CIFSSMBUnixQPathInfo(const int xid, struct cifs_tcon *tcon, | 4164 | CIFSSMBUnixQPathInfo(const unsigned int xid, struct cifs_tcon *tcon, |
4161 | const unsigned char *searchName, | 4165 | const unsigned char *searchName, |
4162 | FILE_UNIX_BASIC_INFO *pFindData, | 4166 | FILE_UNIX_BASIC_INFO *pFindData, |
4163 | const struct nls_table *nls_codepage, int remap) | 4167 | const struct nls_table *nls_codepage, int remap) |
@@ -4243,7 +4247,7 @@ UnixQPathInfoRetry: | |||
4243 | 4247 | ||
4244 | /* xid, tcon, searchName and codepage are input parms, rest are returned */ | 4248 | /* xid, tcon, searchName and codepage are input parms, rest are returned */ |
4245 | int | 4249 | int |
4246 | CIFSFindFirst(const int xid, struct cifs_tcon *tcon, | 4250 | CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon, |
4247 | const char *searchName, | 4251 | const char *searchName, |
4248 | const struct nls_table *nls_codepage, | 4252 | const struct nls_table *nls_codepage, |
4249 | __u16 *pnetfid, __u16 search_flags, | 4253 | __u16 *pnetfid, __u16 search_flags, |
@@ -4388,8 +4392,9 @@ findFirstRetry: | |||
4388 | return rc; | 4392 | return rc; |
4389 | } | 4393 | } |
4390 | 4394 | ||
4391 | int CIFSFindNext(const int xid, struct cifs_tcon *tcon, __u16 searchHandle, | 4395 | int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon, |
4392 | __u16 search_flags, struct cifs_search_info *psrch_inf) | 4396 | __u16 searchHandle, __u16 search_flags, |
4397 | struct cifs_search_info *psrch_inf) | ||
4393 | { | 4398 | { |
4394 | TRANSACTION2_FNEXT_REQ *pSMB = NULL; | 4399 | TRANSACTION2_FNEXT_REQ *pSMB = NULL; |
4395 | TRANSACTION2_FNEXT_RSP *pSMBr = NULL; | 4400 | TRANSACTION2_FNEXT_RSP *pSMBr = NULL; |
@@ -4523,7 +4528,7 @@ FNext2_err_exit: | |||
4523 | } | 4528 | } |
4524 | 4529 | ||
4525 | int | 4530 | int |
4526 | CIFSFindClose(const int xid, struct cifs_tcon *tcon, | 4531 | CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon, |
4527 | const __u16 searchHandle) | 4532 | const __u16 searchHandle) |
4528 | { | 4533 | { |
4529 | int rc = 0; | 4534 | int rc = 0; |
@@ -4555,7 +4560,7 @@ CIFSFindClose(const int xid, struct cifs_tcon *tcon, | |||
4555 | } | 4560 | } |
4556 | 4561 | ||
4557 | int | 4562 | int |
4558 | CIFSGetSrvInodeNumber(const int xid, struct cifs_tcon *tcon, | 4563 | CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon, |
4559 | const unsigned char *searchName, | 4564 | const unsigned char *searchName, |
4560 | __u64 *inode_number, | 4565 | __u64 *inode_number, |
4561 | const struct nls_table *nls_codepage, int remap) | 4566 | const struct nls_table *nls_codepage, int remap) |
@@ -4762,7 +4767,7 @@ parse_DFS_referrals_exit: | |||
4762 | } | 4767 | } |
4763 | 4768 | ||
4764 | int | 4769 | int |
4765 | CIFSGetDFSRefer(const int xid, struct cifs_ses *ses, | 4770 | CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses, |
4766 | const unsigned char *searchName, | 4771 | const unsigned char *searchName, |
4767 | struct dfs_info3_param **target_nodes, | 4772 | struct dfs_info3_param **target_nodes, |
4768 | unsigned int *num_of_nodes, | 4773 | unsigned int *num_of_nodes, |
@@ -4877,7 +4882,8 @@ GetDFSRefExit: | |||
4877 | 4882 | ||
4878 | /* Query File System Info such as free space to old servers such as Win 9x */ | 4883 | /* Query File System Info such as free space to old servers such as Win 9x */ |
4879 | int | 4884 | int |
4880 | SMBOldQFSInfo(const int xid, struct cifs_tcon *tcon, struct kstatfs *FSData) | 4885 | SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, |
4886 | struct kstatfs *FSData) | ||
4881 | { | 4887 | { |
4882 | /* level 0x01 SMB_QUERY_FILE_SYSTEM_INFO */ | 4888 | /* level 0x01 SMB_QUERY_FILE_SYSTEM_INFO */ |
4883 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 4889 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -4956,7 +4962,8 @@ oldQFSInfoRetry: | |||
4956 | } | 4962 | } |
4957 | 4963 | ||
4958 | int | 4964 | int |
4959 | CIFSSMBQFSInfo(const int xid, struct cifs_tcon *tcon, struct kstatfs *FSData) | 4965 | CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon, |
4966 | struct kstatfs *FSData) | ||
4960 | { | 4967 | { |
4961 | /* level 0x103 SMB_QUERY_FILE_SYSTEM_INFO */ | 4968 | /* level 0x103 SMB_QUERY_FILE_SYSTEM_INFO */ |
4962 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 4969 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -5035,7 +5042,7 @@ QFSInfoRetry: | |||
5035 | } | 5042 | } |
5036 | 5043 | ||
5037 | int | 5044 | int |
5038 | CIFSSMBQFSAttributeInfo(const int xid, struct cifs_tcon *tcon) | 5045 | CIFSSMBQFSAttributeInfo(const unsigned int xid, struct cifs_tcon *tcon) |
5039 | { | 5046 | { |
5040 | /* level 0x105 SMB_QUERY_FILE_SYSTEM_INFO */ | 5047 | /* level 0x105 SMB_QUERY_FILE_SYSTEM_INFO */ |
5041 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 5048 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -5105,7 +5112,7 @@ QFSAttributeRetry: | |||
5105 | } | 5112 | } |
5106 | 5113 | ||
5107 | int | 5114 | int |
5108 | CIFSSMBQFSDeviceInfo(const int xid, struct cifs_tcon *tcon) | 5115 | CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon) |
5109 | { | 5116 | { |
5110 | /* level 0x104 SMB_QUERY_FILE_SYSTEM_INFO */ | 5117 | /* level 0x104 SMB_QUERY_FILE_SYSTEM_INFO */ |
5111 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 5118 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -5176,7 +5183,7 @@ QFSDeviceRetry: | |||
5176 | } | 5183 | } |
5177 | 5184 | ||
5178 | int | 5185 | int |
5179 | CIFSSMBQFSUnixInfo(const int xid, struct cifs_tcon *tcon) | 5186 | CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon) |
5180 | { | 5187 | { |
5181 | /* level 0x200 SMB_QUERY_CIFS_UNIX_INFO */ | 5188 | /* level 0x200 SMB_QUERY_CIFS_UNIX_INFO */ |
5182 | TRANSACTION2_QFSI_REQ *pSMB = NULL; | 5189 | TRANSACTION2_QFSI_REQ *pSMB = NULL; |
@@ -5246,7 +5253,7 @@ QFSUnixRetry: | |||
5246 | } | 5253 | } |
5247 | 5254 | ||
5248 | int | 5255 | int |
5249 | CIFSSMBSetFSUnixInfo(const int xid, struct cifs_tcon *tcon, __u64 cap) | 5256 | CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap) |
5250 | { | 5257 | { |
5251 | /* level 0x200 SMB_SET_CIFS_UNIX_INFO */ | 5258 | /* level 0x200 SMB_SET_CIFS_UNIX_INFO */ |
5252 | TRANSACTION2_SETFSI_REQ *pSMB = NULL; | 5259 | TRANSACTION2_SETFSI_REQ *pSMB = NULL; |
@@ -5320,7 +5327,7 @@ SETFSUnixRetry: | |||
5320 | 5327 | ||
5321 | 5328 | ||
5322 | int | 5329 | int |
5323 | CIFSSMBQFSPosixInfo(const int xid, struct cifs_tcon *tcon, | 5330 | CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon, |
5324 | struct kstatfs *FSData) | 5331 | struct kstatfs *FSData) |
5325 | { | 5332 | { |
5326 | /* level 0x201 SMB_QUERY_CIFS_POSIX_INFO */ | 5333 | /* level 0x201 SMB_QUERY_CIFS_POSIX_INFO */ |
@@ -5413,8 +5420,8 @@ QFSPosixRetry: | |||
5413 | in Samba which this routine can run into */ | 5420 | in Samba which this routine can run into */ |
5414 | 5421 | ||
5415 | int | 5422 | int |
5416 | CIFSSMBSetEOF(const int xid, struct cifs_tcon *tcon, const char *fileName, | 5423 | CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon, |
5417 | __u64 size, bool SetAllocation, | 5424 | const char *fileName, __u64 size, bool SetAllocation, |
5418 | const struct nls_table *nls_codepage, int remap) | 5425 | const struct nls_table *nls_codepage, int remap) |
5419 | { | 5426 | { |
5420 | struct smb_com_transaction2_spi_req *pSMB = NULL; | 5427 | struct smb_com_transaction2_spi_req *pSMB = NULL; |
@@ -5502,7 +5509,7 @@ SetEOFRetry: | |||
5502 | } | 5509 | } |
5503 | 5510 | ||
5504 | int | 5511 | int |
5505 | CIFSSMBSetFileSize(const int xid, struct cifs_tcon *tcon, __u64 size, | 5512 | CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon, __u64 size, |
5506 | __u16 fid, __u32 pid_of_opener, bool SetAllocation) | 5513 | __u16 fid, __u32 pid_of_opener, bool SetAllocation) |
5507 | { | 5514 | { |
5508 | struct smb_com_transaction2_sfi_req *pSMB = NULL; | 5515 | struct smb_com_transaction2_sfi_req *pSMB = NULL; |
@@ -5584,7 +5591,7 @@ CIFSSMBSetFileSize(const int xid, struct cifs_tcon *tcon, __u64 size, | |||
5584 | time and resort to the original setpathinfo level which takes the ancient | 5591 | time and resort to the original setpathinfo level which takes the ancient |
5585 | DOS time format with 2 second granularity */ | 5592 | DOS time format with 2 second granularity */ |
5586 | int | 5593 | int |
5587 | CIFSSMBSetFileInfo(const int xid, struct cifs_tcon *tcon, | 5594 | CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
5588 | const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener) | 5595 | const FILE_BASIC_INFO *data, __u16 fid, __u32 pid_of_opener) |
5589 | { | 5596 | { |
5590 | struct smb_com_transaction2_sfi_req *pSMB = NULL; | 5597 | struct smb_com_transaction2_sfi_req *pSMB = NULL; |
@@ -5647,7 +5654,7 @@ CIFSSMBSetFileInfo(const int xid, struct cifs_tcon *tcon, | |||
5647 | } | 5654 | } |
5648 | 5655 | ||
5649 | int | 5656 | int |
5650 | CIFSSMBSetFileDisposition(const int xid, struct cifs_tcon *tcon, | 5657 | CIFSSMBSetFileDisposition(const unsigned int xid, struct cifs_tcon *tcon, |
5651 | bool delete_file, __u16 fid, __u32 pid_of_opener) | 5658 | bool delete_file, __u16 fid, __u32 pid_of_opener) |
5652 | { | 5659 | { |
5653 | struct smb_com_transaction2_sfi_req *pSMB = NULL; | 5660 | struct smb_com_transaction2_sfi_req *pSMB = NULL; |
@@ -5703,7 +5710,7 @@ CIFSSMBSetFileDisposition(const int xid, struct cifs_tcon *tcon, | |||
5703 | } | 5710 | } |
5704 | 5711 | ||
5705 | int | 5712 | int |
5706 | CIFSSMBSetPathInfo(const int xid, struct cifs_tcon *tcon, | 5713 | CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, |
5707 | const char *fileName, const FILE_BASIC_INFO *data, | 5714 | const char *fileName, const FILE_BASIC_INFO *data, |
5708 | const struct nls_table *nls_codepage, int remap) | 5715 | const struct nls_table *nls_codepage, int remap) |
5709 | { | 5716 | { |
@@ -5787,7 +5794,7 @@ SetTimesRetry: | |||
5787 | handling it anyway and NT4 was what we thought it would be needed for | 5794 | handling it anyway and NT4 was what we thought it would be needed for |
5788 | Do not delete it until we prove whether needed for Win9x though */ | 5795 | Do not delete it until we prove whether needed for Win9x though */ |
5789 | int | 5796 | int |
5790 | CIFSSMBSetAttrLegacy(int xid, struct cifs_tcon *tcon, char *fileName, | 5797 | CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon, char *fileName, |
5791 | __u16 dos_attrs, const struct nls_table *nls_codepage) | 5798 | __u16 dos_attrs, const struct nls_table *nls_codepage) |
5792 | { | 5799 | { |
5793 | SETATTR_REQ *pSMB = NULL; | 5800 | SETATTR_REQ *pSMB = NULL; |
@@ -5875,7 +5882,7 @@ cifs_fill_unix_set_info(FILE_UNIX_BASIC_INFO *data_offset, | |||
5875 | } | 5882 | } |
5876 | 5883 | ||
5877 | int | 5884 | int |
5878 | CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon, | 5885 | CIFSSMBUnixSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon, |
5879 | const struct cifs_unix_set_info_args *args, | 5886 | const struct cifs_unix_set_info_args *args, |
5880 | u16 fid, u32 pid_of_opener) | 5887 | u16 fid, u32 pid_of_opener) |
5881 | { | 5888 | { |
@@ -5939,7 +5946,8 @@ CIFSSMBUnixSetFileInfo(const int xid, struct cifs_tcon *tcon, | |||
5939 | } | 5946 | } |
5940 | 5947 | ||
5941 | int | 5948 | int |
5942 | CIFSSMBUnixSetPathInfo(const int xid, struct cifs_tcon *tcon, char *fileName, | 5949 | CIFSSMBUnixSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon, |
5950 | char *fileName, | ||
5943 | const struct cifs_unix_set_info_args *args, | 5951 | const struct cifs_unix_set_info_args *args, |
5944 | const struct nls_table *nls_codepage, int remap) | 5952 | const struct nls_table *nls_codepage, int remap) |
5945 | { | 5953 | { |
@@ -6026,7 +6034,7 @@ setPermsRetry: | |||
6026 | * the data isn't copied to it, but the length is returned. | 6034 | * the data isn't copied to it, but the length is returned. |
6027 | */ | 6035 | */ |
6028 | ssize_t | 6036 | ssize_t |
6029 | CIFSSMBQAllEAs(const int xid, struct cifs_tcon *tcon, | 6037 | CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon, |
6030 | const unsigned char *searchName, const unsigned char *ea_name, | 6038 | const unsigned char *searchName, const unsigned char *ea_name, |
6031 | char *EAData, size_t buf_size, | 6039 | char *EAData, size_t buf_size, |
6032 | const struct nls_table *nls_codepage, int remap) | 6040 | const struct nls_table *nls_codepage, int remap) |
@@ -6209,8 +6217,8 @@ QAllEAsOut: | |||
6209 | } | 6217 | } |
6210 | 6218 | ||
6211 | int | 6219 | int |
6212 | CIFSSMBSetEA(const int xid, struct cifs_tcon *tcon, const char *fileName, | 6220 | CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon, |
6213 | const char *ea_name, const void *ea_value, | 6221 | const char *fileName, const char *ea_name, const void *ea_value, |
6214 | const __u16 ea_value_len, const struct nls_table *nls_codepage, | 6222 | const __u16 ea_value_len, const struct nls_table *nls_codepage, |
6215 | int remap) | 6223 | int remap) |
6216 | { | 6224 | { |
@@ -6336,7 +6344,7 @@ SetEARetry: | |||
6336 | * incompatible for network fs clients, we could instead simply | 6344 | * incompatible for network fs clients, we could instead simply |
6337 | * expose this config flag by adding a future cifs (and smb2) notify ioctl. | 6345 | * expose this config flag by adding a future cifs (and smb2) notify ioctl. |
6338 | */ | 6346 | */ |
6339 | int CIFSSMBNotify(const int xid, struct cifs_tcon *tcon, | 6347 | int CIFSSMBNotify(const unsigned int xid, struct cifs_tcon *tcon, |
6340 | const int notify_subdirs, const __u16 netfid, | 6348 | const int notify_subdirs, const __u16 netfid, |
6341 | __u32 filter, struct file *pfile, int multishot, | 6349 | __u32 filter, struct file *pfile, int multishot, |
6342 | const struct nls_table *nls_codepage) | 6350 | const struct nls_table *nls_codepage) |