aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
Commit message (Collapse)AuthorAge
* [CIFS] /proc/fs/cifs debug code cleanup and new stats2Steve French2005-10-07
| | | | | | | These changes to debug code and new stats are helpful in debugging potential tcp performance/configuration problems under cifs. Signed-off-by: Steve French <sfrench@us.ibm.com>
* [CIFS] cleanup sparse and compile errors in previous fixSteve French2005-10-05
| | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* CIFS: Allow wsize to exceed CIFSMaxBufSizeSteve French2005-10-05
| | | | | | | | 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>
* CIFS: implement cifs_writepages to perform multi-page I/OSteve French2005-10-05
| | | | | Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
* CIFS: Create routine find_writable_file to reduce redundant codeSteve French2005-10-05
| | | | | Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
* [CIFS] Missing parenthesis from error message in previous fixSteve French2005-10-03
| | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Allow SMBWrite2 to work to older serversSteve French2005-10-03
| | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Add writepages support to shrink memory usage on writes,Steve French2005-10-03
| | | | | | | | | | 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>
* [CIFS] Various minor bigendian fixes and sparse level 2 warning message fixesSteve French2005-09-22
| | | | | | | 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)
* [CIFS] Add support for legacy servers part nine. statfs (df and du) is nowSteve French2005-09-22
| | | | | | | | functional, and the length check is fixed so readdir does not throw a warning message when windows me messes up the response to FindFirst of an empty dir (with only . and ..). Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Add support for legacy servers part eight. Write fixes for WindowsSteve French2005-09-20
| | | | | | | | ME, and do not set ctime unless explicitly requested with atime and/or mtime (it gets thrown away by most servers anyway as there is no way to set this via posix). Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Add support for legacy servers part seven. Fix open for write,Steve French2005-09-18
| | | | | | | begin implementation of Win9x style set file size via open then write of zero bytes. Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Add support for legacy servers part six. Fix read syntax soSteve French2005-09-16
| | | | | | | we do not request more than negotiated buffer size even if buffer size is small (smaller than one page) Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Fix readdir caching when unlink removes file in current searchSteve French2005-09-16
| | | | | | | buffer, and this is followed by a rewind search to just before the deleted entry. Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Fix compiler warningsSteve French2005-09-15
| | | | | | Fix some compiler warnings noticed on x64 by me and ppc64 by Shaggy Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Update cifs TODO list with additional new features thatSteve French2005-09-06
| | | | | | have been requested. Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Add support for legacy servers part 5Steve French2005-09-01
| | | | | | | Handle small negotiated read sizes (under 4K) and finish up read and write support. Signed-off-by: Steve French <sfrench@us.ibm.com>
* [CIFS] Add support for legacy servers part 4Steve French2005-08-30
| | | | | | | Fix WriteX support for old servers which do not support large files. Signed-off-by: Steve French <sfrench@us.ibm.com>
* [CIFS] Add nolock synonym (ala nfs) for nobrl to disable sending byte rangeSteve French2005-08-30
| | | | | | locks remotely. Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Add support for suspendSteve French2005-08-30
| | | | | | | | | | | | | 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(-)
* Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitSteve French2005-08-30
|\
| * [PATCH] Fix oops in fs/locks.c on close of file with pending locksSteve French2005-08-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recent change to locks_remove_flock code in fs/locks.c changes how byte range locks are removed from closing files, which shows up a bug in cifs. The assumption in the cifs code was that the close call sent to the server would remove any pending locks on the server on this file, but that is no longer safe as the fs/locks.c code on the client wants unlock of 0 to PATH_MAX to remove all locks (at least from this client, it is not possible AFAIK to remove all locks from other clients made to the server copy of the file). Note that cifs locks are different from posix locks - and it is not possible to map posix locks perfectly on the wire yet, due to restrictions of the cifs network protocol, even to Samba without adding a new request type to the network protocol (which we plan to do for Samba 3.0.21 within a few months), but the local client will have the correct, posix view, of the lock in most cases. The correct fix for cifs for this would involve a bigger change than I would like to do this late in the 2.6.13-rc cycle - and would involve cifs keeping track of all unmerged (uncoalesced) byte range locks for each remote inode and scanning that list to remove locks that intersect or fall wholly within the range - locks that intersect may have to be reaquired with the smaller, remaining range. Signed-off-by: Steve French <sfrench@us.ibm.com> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* | [CIFS] Remove cifs_sb argument from *build_path_from_dentrySteve French2005-08-30
| | | | | | | | | | | | | | | | This argument was added in a recent patch, but is unnecessary, since the superblock is easily obtained from the dentry. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
* | [CIFS] Support for legacy servers part 3 - Add support for Open and mostSteve French2005-08-25
| | | | | | | | | | | | of Read support. Signed-off-by: Steve French <sfrench@us.ibm.com>
* | [CIFS] Use file instead of dentry in cifs dir_notify structSteve French2005-08-24
| | | | | | | | Signed-off-by: Steve French <sfrench@us.ibm.com>
* | [CIFS] Change notify support part 3Steve French2005-08-24
| | | | | | | | Signed-off-by: Steve French <sfrench@us.ibm.com>
* | [CIFS] Missing line from previous patchSteve French2005-08-24
| | | | | | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Change notify support part 2Steve French2005-08-24
| | | | | | | | | | Signed-off-by: Asser Ferno <asser@diku.dk> Signed-off-by: Steve French <sfrench@us.ibm.com> and lightly modified
* | [CIFS] Update thanks/contributor list with Miklos SzerediSteve French2005-08-24
| | | | | | | | | | | | | | | | (Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> also should have been listed on the last cifs patch fixing some lookup intent handling in cifs) Signed-off-by: Steve French <sfrench@us.ibm.com>
* | CIFS: Fix typos in fs/cifs/CHANGESSteve French2005-08-24
| | | | | | | | | | Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
* | CIFS: Reduce CONFIG_CIFS_STATS ifdefsSteve French2005-08-24
| | | | | | | | | | | | | | | | Make cifs_stats code conditional in the header files to avoid ifdefs in the main code. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
* | [CIFS] Support for mounting to older servers part 2. Add support forSteve French2005-08-23
| | | | | | | | | | | | legacy getattr (lookup). Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Support for mounting to older, pre-CIFS servers added. ThisSteve French2005-08-23
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* | [CIFS] Finish up of case-insensitive dentry handling for cifs. ThisSteve French2005-08-22
| | | | | | | | | | | | | | | | | | will eventually (or should eventually) be common code for jfs, smbfs, etc. but in the meantime is small enough and necessary when mounting case insensitive to Windows (nocase). Signed-off-by: Shaggy (shaggy@austin.ibm.com) Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Make CIFS statistics more accurate and add some stats that wereSteve French2005-08-21
| | | | | | | | | | | | missing. Most importantly SMB reads were undercounted. Signed-off-by: Steve French (sfrench@us.ibm.com)
* | Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitSteve French2005-08-21
|\|
| * Fix nasty ncpfs symlink handling bug.Linus Torvalds2005-08-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug could cause oopses and page state corruption, because ncpfs used the generic page-cache symlink handlign functions. But those functions only work if the page cache is guaranteed to be "stable", ie a page that was installed when the symlink walk was started has to still be installed in the page cache at the end of the walk. We could have fixed ncpfs to not use the generic helper routines, but it is in many ways much cleaner to instead improve on the symlink walking helper routines so that they don't require that absolute stability. We do this by allowing "follow_link()" to return a error-pointer as a cookie, which is fed back to the cleanup "put_link()" routine. This also simplifies NFS symlink handling. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| * [PATCH] CIFS: Fix path name conversion for long filenamesSteve French2005-08-14
| | | | | | | | | | | | | | | | Fix path name conversion for long filenames when mapchars mount option was specified at mount time. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| * [PATCH] CIFS: Fix missing entries in search resultsSteve French2005-08-14
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing entries in search results when very long file names and more than 50 (or so) of such long search entries in the directory. FindNext could send corrupt last byte of resume name when resume key was a few hundred bytes long file name or longer. Fixes Samba Bug # 2932 Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* | [CIFS] Finish cifs mount option which requests case insensitive pathSteve French2005-08-19
| | | | | | | | | | | | name matching. Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Add mount option for disabling sending byte range lock requestsSteve French2005-08-18
| | | | | | | | | | | | | | | | 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)
* | [CIFS] Change Notify support part 1 - add dnotify thread for processingSteve French2005-08-18
| | | | | | | | | | | | | | notify responses. Signed-off-by: Asser Ferno <asser@diku.dk> Signed-off-by: Steve French <sfrench@us.ibm.com>
* | [CIFS] rmmod cifs can oops if done soon after the last cifs unmountSteve French2005-08-18
| | | | | | | | | | Signed-off-by: Shaggy (shaggy@austin.ibm.com) Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Ensure that cifs multiplex ids do not collide.Steve French2005-08-17
| | | | | | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Missing ; from previous fix. Pointed out by Shaggy.Steve French2005-08-17
| | | | | | | | Signed-off-by: Steve French
* | [CIFS] Add missing check for path name allocation failure. Remove fourSteve French2005-08-13
| | | | | | | | | | | | | | | | redundant null pointer checks before cifs_buf_release. Found by coverity analyzer. Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Fix missing entries in search results when very long file names andSteve French2005-08-03
| | | | | | | | | | | | | | | | | | | | more than 50 (or so) of such long search entries in the directory. FindNext could send corrupt last byte of resume name when resume key was a few hundred bytes long file name or longer. Fixes Samba Bug # 2932 Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Add compat with SFU (part 2)Steve French2005-07-21
| | | | | | | | | | | | | | | | | | Creating FIFOs to non-Unix servers (with cifs mounts for which sfu option was specified) now works. Signed-off-by: Steve French (sfrench@us.ibm.com) Thanks to Martin Koeppe for his assistance
* | [CIFS] Fix path name conversion for long filenames when mapchars mountSteve French2005-07-14
| | | | | | | | | | | | option was specified at mount time. Signed-off-by: Steve French (sfrench@us.ibm.com)
* | [CIFS] Add compat with SFU (part 1)Steve French2005-07-14
| | | | | | | | | | | | | | | | | | 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