summaryrefslogtreecommitdiffstats
path: root/fs/cifs
Commit message (Collapse)AuthorAgeFilesLines
* Fix nasty ncpfs symlink handling bug.Linus Torvalds2005-08-202-5/+5
| | | | | | | | | | | | | | | | | | 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-152-0/+7
| | | | | | | | 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-151-0/+3
| | | | | | | | | | | | | 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] Fix cifs update of page cache. Write at correct offset when out of memorySteve French2005-06-092-1/+4
| | | | | | | | | | and add_to_page_cache fails. Thanks to Shaggy for pointing out the fix. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Shaggy (shaggy@us.ibm.com)
* [CIFS] Update cifs version number and fix whitespaceSteve French2005-06-032-18/+18
| | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] fix casts of unicode strings to match function definitionSteve French2005-05-172-29/+29
| | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] Fix oops in cifs_unlink. Caused in some cases when renaming over ↵Steve French2005-05-172-10/+17
| | | | | | | | | | | existing, newly created, file. Samba bugzilla: 2697 Signed-off-by: Steve French (sfrench@us.ibm.com)
* [CIFS] missing break needed to handle < when mount option "mapchars" specifiedSteve French2005-05-172-2/+3
| | | | Signed-off-by: Steve French (sfrench@us.ibm.com)
* [PATCH] remove BK documentationAdrian Bunk2005-05-061-3/+3
| | | | | | | | | There's no longer a reason to document the obsolete BK usage. Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Update cifs todo listSteve French2005-04-301-2/+10
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: append \* properly on ASCII serversSteve French2005-04-302-3/+7
| | | | | | | For older servers which do not support Unicode Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Do not sleep interruptible after socket connect failureSteve French2005-04-292-7/+11
| | | | | | | | | .. since it can be due to pending kill. Update readme information to better describe cifs umount Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Do not init smb requests or block when sending requestsSteve French2005-04-295-7/+53
| | | | | | | | | | if cifsd thread is no longer running to demultixplex responses. Do not send FindClose request when FindFirst failed without reaching end of search. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: handle termination of cifs oplockd kernel threadSteve French2005-04-294-15/+23
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Fix mapping of EMLINK caseSteve French2005-04-294-2/+11
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Handle case of multiple trans2 responses for one SMB request ↵Steve French2005-04-293-20/+23
| | | | | | | (part 2 of 2) Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: cleanup various long linesSteve French2005-04-291-9/+13
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Handle multiple response transact2 part 1 of 2Steve French2005-04-292-104/+246
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Ease memory pressure, do not use large buffers in byte range ↵Steve French2005-04-292-149/+154
| | | | | | | lock requests. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: missing semicolon from previous fixSteve French2005-04-291-1/+1
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Better handle errors on second socket recv message callSteve French2005-04-292-7/+27
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: improve check for search entry going beyond end of SMB transactSteve French2005-04-294-68/+102
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Fix caching problemSteve French2005-04-295-25/+83
| | | | | | | | | pointed out by Dave Stahl and Vince Negri in which cifs can update the last modify time on a server modified file without invalidating the local cached data due to an intervening readdir. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: remove cifs_kcalloc and check for NULL return on kcalloc in ↵Steve French2005-04-292-59/+80
| | | | | | | | | session initialization Suggested by: Adrian Bunk and Dave Miller Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Missing initialization for largeBuf flag left out of previous ↵Steve French2005-04-293-2/+27
| | | | | | | changeset Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Do not use large smb buffers in response pathSteve French2005-04-293-33/+65
| | | | | | | | | unless response is larger than 256 bytes. This cuts more than 1/3 of the large memory allocations that cifs does and should be a huge help to memory pressure under stress. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: cleanup of ifdefs usage so it is more consistentSteve French2005-04-293-21/+25
| | | | | | | | And fix to not needlessly send new POSIX QFSInfo when server does not explicitly claim support for the new protocol extensions. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: CIFS ioctl needed by umount.cifs utilitySteve French2005-04-293-9/+28
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Do not interpret oplock break responses as responses to an ↵Steve French2005-04-295-6/+16
| | | | | | | | | unrelated command .. even if the multiplex ids match. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Fix PPC64 compile errorSteve French2005-04-291-8/+8
| | | | | | | | .. and do not double endian convert the special characters whem mounted with mapchars mount parm. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: character mapping of special characters (part 3 of 3)Steve French2005-04-2914-332/+337
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: finish up of special character mapping capable unicode ↵Steve French2005-04-293-11/+83
| | | | | | | conversion routine part 2 of 3 Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: remove a few redundant null pointer checks, and cleanup misc ↵Steve French2005-04-292-128/+182
| | | | | | | | | source formatting Mostly suggested by Jesper Juhl Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Add new mount parm mapcharsSteve French2005-04-298-12/+116
| | | | | | | | | For handling seven special characters that shells use for filenames. This first parts implements conversions from Unicode. Signed-off-by: Steve French Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: fix rare oops in cifs_closeSteve French2005-04-292-1/+4
| | | | | | | Protect access to cifs file list in cifs_close path Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Fix multiuser packet signing to use the right sequence number ↵Steve French2005-04-296-32/+50
| | | | | | | and mac session key Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Enable ioctl support in POSIX extensions to handle lsattrSteve French2005-04-295-11/+15
| | | | | | | | remove sparse warnings, unnecessary pad in QueryFileInfo and redundant function define. Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Gracefully turn off serverino (when serverino is enabled on mount)Steve French2005-04-292-1/+7
| | | | | | | | Old servers such as NT4 do not support this level of FindFirst (and retry with a lower infolevel) Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: add support for chattr/lsattr in new CIFS POSIX extensionsSteve French2005-04-296-14/+212
| | | | | Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] cifs: Only send POSIX ACL calls to server if server claims to ↵Steve French2005-04-291-8/+12
| | | | | | | support that capability bit Signed-off-by: Steve French (sfrench@us.ibm.com) Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Linux-2.6.12-rc2Linus Torvalds2005-04-1742-0/+24587
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!