summaryrefslogtreecommitdiff
path: root/fs/cifs
AgeCommit message (Collapse)Author
2005-09-22[CIFS] Various minor bigendian fixes and sparse level 2 warning message fixesSteve French
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-21[CIFS] Add support for legacy servers part nine. statfs (df and du) is nowSteve French
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)
2005-09-20[CIFS] Add support for legacy servers part eight. Write fixes for WindowsSteve French
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)
2005-09-18[CIFS] Add support for legacy servers part seven. Fix open for write,Steve French
begin implementation of Win9x style set file size via open then write of zero bytes. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-15[CIFS] Add support for legacy servers part six. Fix read syntax soSteve French
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)
2005-09-15[CIFS] Fix readdir caching when unlink removes file in current searchSteve French
buffer, and this is followed by a rewind search to just before the deleted entry. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-15[CIFS] Fix compiler warningsSteve French
Fix some compiler warnings noticed on x64 by me and ppc64 by Shaggy Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-09-10[PATCH] fs: fix-up schedule_timeout() usageNishanth Aravamudan
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-07[PATCH] fs: convert kcalloc to kzallocPekka Enberg
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-09-07[PATCH] cifs_create() fixMiklos Szeredi
cifs_create() did totally the wrong thing with nd->intent.open.flags: it interpreted nd->intent.open.flags as the original open flags, not the one transformed for open_namei(). Also it used the intent data even if it was not filled in (if called from sys_mknod()). Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Cc: <viro@parcelfarce.linux.theplanet.co.uk> Cc: Christoph Hellwig <hch@lst.de> Cc: Steven French <sfrench@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-06[CIFS] Update cifs TODO list with additional new features thatSteve French
have been requested. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-31[CIFS] Add support for legacy servers part 5Steve French
Handle small negotiated read sizes (under 4K) and finish up read and write support. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-30[CIFS] Add support for legacy servers part 4Steve French
Fix WriteX support for old servers which do not support large files. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-30[CIFS] Add nolock synonym (ala nfs) for nobrl to disable sending byte rangeSteve French
locks remotely. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-30[CIFS] Add support for suspendSteve French
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-30Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitSteve French
2005-08-30[CIFS] Remove cifs_sb argument from *build_path_from_dentrySteve French
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>
2005-08-26[PATCH] Fix oops in fs/locks.c on close of file with pending locksSteve French
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>
2005-08-24[CIFS] Support for legacy servers part 3 - Add support for Open and mostSteve French
of Read support. Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24[CIFS] Use file instead of dentry in cifs dir_notify structSteve French
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24[CIFS] Change notify support part 3Steve French
Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24[CIFS] Missing line from previous patchSteve French
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-24[CIFS] Change notify support part 2Steve French
Signed-off-by: Asser Ferno <asser@diku.dk> Signed-off-by: Steve French <sfrench@us.ibm.com> and lightly modified
2005-08-24[CIFS] Update thanks/contributor list with Miklos SzerediSteve French
(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>
2005-08-24CIFS: Fix typos in fs/cifs/CHANGESSteve French
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2005-08-24CIFS: Reduce CONFIG_CIFS_STATS ifdefsSteve French
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>
2005-08-23[CIFS] Support for mounting to older servers part 2. Add support forSteve French
legacy getattr (lookup). Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-22[CIFS] Support for mounting to older, pre-CIFS servers added. ThisSteve French
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-22[CIFS] Finish up of case-insensitive dentry handling for cifs. ThisSteve French
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)
2005-08-20[CIFS] Make CIFS statistics more accurate and add some stats that wereSteve French
missing. Most importantly SMB reads were undercounted. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-20Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.gitSteve French
2005-08-19Fix nasty ncpfs symlink handling bug.Linus Torvalds
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>
2005-08-19[CIFS] Finish cifs mount option which requests case insensitive pathSteve French
name matching. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-18[CIFS] Add mount option for disabling sending byte range lock requestsSteve French
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] Change Notify support part 1 - add dnotify thread for processingSteve French
notify responses. Signed-off-by: Asser Ferno <asser@diku.dk> 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 French
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 French
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-17[CIFS] Missing ; from previous fix. Pointed out by Shaggy.Steve French
Signed-off-by: Steve French
2005-08-14[PATCH] CIFS: Fix path name conversion for long filenamesSteve French
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>
2005-08-14[PATCH] CIFS: Fix missing entries in search resultsSteve French
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>
2005-08-13[CIFS] Add missing check for path name allocation failure. Remove fourSteve French
redundant null pointer checks before cifs_buf_release. Found by coverity analyzer. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-08-02[CIFS] Fix missing entries in search results when very long file names andSteve French
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)
2005-07-21[CIFS] Add compat with SFU (part 2)Steve French
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
2005-07-14[CIFS] Fix path name conversion for long filenames when mapchars mountSteve French
option was specified at mount time. Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-07-14[CIFS] Add compat with SFU (part 1)Steve French
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
2005-06-23[CIFS] Performance improvement, finish up adding CIFSSMBWrite2Steve French
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-06-23[CIFS] Fix typo in POSIX SetFSInfo callSteve French
Signed-off-by: Steve French (sfrench@us.ibm.com)
2005-06-22Merge with ↵Steve French
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6.git
2005-06-22[CIFS] POSIX extensions, SetFSInfo addedJeremy Allison
Signed-off-by: Steve French@sfrench@us.ibm.com Signed-off-by: Jeremy Allison (jra@samba.org)
2005-06-22[CIFS] Add stats for findfirst, findnext, findcloseSteve French
Signed-off-by: Steve French (sfrench@us.ibm.com)