summaryrefslogtreecommitdiff
path: root/fs/cifs/connect.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-12[CIFS] Allow cifsd to suspend if connection is lostSteve French1-0/+1
Make cifsd allow us to suspend if it has lost the connection with a server Ref: http://bugzilla.kernel.org/show_bug.cgi?id=6811 Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Steve French <sfrench@us.ibm.com> (cherry picked from 27bd6cd87b0ada66515ad49bc346d77d1e9d3e05 commit)
2006-08-12[CIFS] Do not time out posix brl requests when using new posix setfileinfoSteve French1-1/+16
request and do not time out slow requests to a server that is still responding well to other threads Suggested by jra of Samba team Signed-off-by: Steve French <sfrench@us.ibm.com> (cherry picked from 89b57148115479eef074b8d3f86c4c86c96ac969 commit)
2006-06-27[CIFS] Fix allocation of buffers for new session setup routine to allowSteve French1-9/+14
longer user and domain names and allow passing sec options on mount Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-06-26[CIFS] remove some redundant null pointer checksSteve French1-30/+15
some of them pointed out by Dave Jones Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-06-23[CIFS] Enable sec flags on mount for cifs (part one)Steve French1-315/+23
Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-06-14[CIFS] Fix suspend/resume problem which causes EIO on subsequent access toPavel Machek1-12/+12
the mount. Signed-off-by: Pavel Machek <pavel@suse.de> Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-06-01[CIFS] Support for setting up SMB sessions to legacy lanman servers part 2Steve French1-18/+29
2006-06-01[CIFS] Support for setting up SMB sessions to legacy lanman serversSteve French1-13/+26
2006-05-30[CIFS] Fix typos in previous fixSteve French1-3/+3
Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-05-30[CIFS] fix memory leak in cifs session info struct on reconnectSteve French1-6/+82
Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-05-30[CIFS] Do not limit the length of share names (was 100 for whole UNC name)Steve French1-3/+6
during mount. Especially important for some non-Western languages. Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-04-24[CIFS] Fix compile error when CONFIG_CIFS_EXPERIMENTAL is undefinedSteve French1-1/+4
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-04-22[CIFS] Readdir fixes to allow search to start at arbitrary positionSteve French1-1/+4
in directory Also includes first part of fix to compensate for servers which forget to return . and .. as well as updates to changelog and cifs readme. Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-03-03[CIFS] Fix slow oplock break response when mounts to differentSteve French1-1/+1
servers have same tid and we try to match oplock break to wrong tid. Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-03-03[CIFS] Workaround various server bugs found in testing at connectathonSteve French1-0/+8
- slow down negprot 1ms during mount when RFC1001 over port 139 to give buggy servers time to clear sess_init - remap some plausible but incorrect SMB return codes to the right ones in truncate and hardlink paths Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-03-02[CIFS] Make POSIX CIFS Extensions SetFSInfo match exactly what we wantSteve French1-15/+22
not just the posix path feature. Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-02-24[CIFS] Fix large (ie over 64K for MaxCIFSBufSize) buffer case for wrappingSteve French1-1/+3
bcc on read response and for wrapping sessionsetup maxbufsize field Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-02-23Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitSteve French1-4/+4
Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-02-23[PATCH] CIFS: CIFSSMBRead was returning an invalid pointer in buf on socket ↵Steve French1-4/+4
error Thanks to Adrian Bunk for debugging the problem and to Shaggy for helping find the solution. Also added a fix for 64K pages we found in loosely-related testing Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-14[CIFS] SessionSetup cleanup part 2Steve French1-4/+4
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>
2006-02-10[CIFS] Cleanup NTLMSSP session setup handlingSteve French1-28/+14
Fix to hash NTLMv2 properly will follow. Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-01-28[CIFS] Remove compiler warningSteve French1-1/+2
Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-01-25[CIFS] Make cifs default wsize match what we actually want to send (52KSteve French1-1/+9
typically - header + 13 pages). Forgetting to set wsize on the mount command costs more than 10% on large write (can be much more) so this makes a saner default. We still shrink this default smaller if server can not support it. Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-01-14[CIFS] Fix CIFS to recognize share mode securitySteve French1-5/+22
Fix Samba bugzilla bug 3301 In share mode encrypted password must be sent on tree connection (in our case only the NTLM password is sent, not the older LANMAN one). Signed-off-by: Steve French <sfrench@us.ibm.com>
2006-01-13[CIFS] Add worker function for Get ACL cifs styleSteve French1-0/+7
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-12-13[CIFS] Avoid extra large buffer allocation (and memcpy) in cifs_readpagesSteve French1-1/+1
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-12-02[CIFS] Kerberos and CIFS ACL support part 1Steve French1-7/+46
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-11-12[CIFS] Cleanup sparse warnings for unicode little endian castsSteve French1-50/+41
Following Shaggy's suggestion, do a better job on the unicode string handling routines in cifs in specifying that the wchar_t are really little endian widechars (__le16). Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-11-11[CIFS] Reserve upcall IDX value for CIFS with connector header and addSteve French1-0/+1
Kconfig option for CIFS upcall. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-11-07[PATCH] kfree cleanup: fsJesper Juhl1-54/+27
This is the fs/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in fs/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-21Merge with /pub/scm/linux/kernel/git/sfrench/cifs-2.6.git/Steve French1-37/+182
2005-10-12[CIFS] CIFS Stats improvementsSteve French1-0/+3
New cifs_writepages routine was not updated bytes written in cifs stats. Also added ability to clear /proc/fs/cifs/Stats by writing (0 or 1) to it. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-11[CIFS] Do not shrink tcp sndbuf/rcvbuf from their defaultsSteve French1-8/+10
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-10[CIFS] Fix rsize calculation so that large readx flag is checked.Steve French1-5/+24
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-10-06CIFS: Allow wsize to exceed CIFSMaxBufSizeSteve French1-1/+1
This allows cifs_writepages to send data in larger chunks from the page cache, without requiring larger memory allocations in other cases. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-10-04[CIFS] Add writepages support to shrink memory usage on writes,Steve French1-0/+4
eliminate the double copy, and improve cifs write performance and help the server by upping the typical write size from 4K to 16K (or even larger if wsize set explicitly) for servers which support this. Part 1 of 2 Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-09-23[PATCH] cifs: Add support for suspendSteve French1-0/+2
cifsd had been preventing software suspend from completing. Signed-off-by: pavel@suse.de Signed-off-by: Steve French <sfrench@us.ibm.com> lightly modified Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-23[CIFS] Various minor bigendian fixes and sparse level 2 warning message fixesSteve French1-13/+25
Most important of these fixes mapchars on bigendian and a few statfs fields Signed-off-by: Shaggy (shaggy@austin.ibm.com) Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-10[PATCH] fs: fix-up schedule_timeout() usageNishanth Aravamudan1-4/+2
Use schedule_timeout_{,un}interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Also use helper functions to convert between human time units and jiffies rather than constant HZ division to avoid rounding errors. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-08[PATCH] fs: convert kcalloc to kzallocPekka Enberg1-41/+41
This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-31[CIFS] Add support for legacy servers part 4Steve French1-1/+1
Fix WriteX support for old servers which do not support large files. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-31[CIFS] Add nolock synonym (ala nfs) for nobrl to disable sending byte rangeSteve French1-1/+2
locks remotely. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-31[CIFS] Add support for suspendSteve French1-0/+2
cifsd had been preventing software suspend from completing. Signed-off-by: pavel@suse.de Signed-off-by: Steve French <sfrench@us.ibm.com> lightly modified --- fs/cifs/CHANGES | 3 ++- fs/cifs/cifsfs.c | 4 ++++ fs/cifs/connect.c | 2 ++ 3 files changed, 8 insertions(+), 1 deletions(-)
2005-08-24[CIFS] Support for mounting to older servers part 2. Add support forSteve French1-2/+3
legacy getattr (lookup). Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-23[CIFS] Support for mounting to older, pre-CIFS servers added. ThisSteve French1-9/+48
allows specifying an RFC1001 target "called" name (netbios name of the server, which can now be pecified as mount option "servernetbiosname" but will eventually be passed in automatically on retry of host down error messages caused when server refuses to handle default server name and can not handle port 445). This is an important step, but additional testing and fixup is needed to add remaining function needed for these. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-19[CIFS] Finish cifs mount option which requests case insensitive pathSteve French1-2/+7
name matching. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-19[CIFS] Add mount option for disabling sending byte range lock requestsSteve French1-1/+13
over the wire (to help the case when applications break with cifs mandatory lock behavior. Add part one of mount option for requesting case insensitive path name matching. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-18[CIFS] rmmod cifs can oops if done soon after the last cifs unmountSteve French1-7/+18
Signed-off-by: Shaggy (shaggy@austin.ibm.com) Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-17[CIFS] Ensure that cifs multiplex ids do not collide.Steve French1-0/+9
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-07-15[CIFS] Add compat with SFU (part 1)Steve French1-0/+7
This should help the case of creating fifos and other special files to servers which do not support the Unix extensions. Signed-off-by: Steve French (sfrench@us.ibm.com) Thanks to Martin Koeppe for his suggestions and good analysis