Commit graph android_kernel_sony_sdm845/fs/cifs/netmisc.c
Message SHA1
[CIFS] cleanup old checkpatch warnings
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2008-05-13 04:54:12 +00:00
582d21e5e3
[CIFS] Fixed build warning in is_ip
Signed-off-by: Igor Mammedov <niallain@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

Igor Mammedov   authored and   Steve French   commited 2008-05-08 20:48:42 +00:00
7c5e628f95
[CIFS] clean up some hard to read ifdefs
Christoph had noticed too many ifdefs in the CIFS code making it
hard to read.  This patch removes about a quarter of them from
the C files in cifs by improving a few key ifdefs in the .h files.

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2008-02-12 20:32:36 +00:00
90c81e0b0e
[CIFS] reduce checkpatch warnings
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2008-02-07 23:25:02 +00:00
ad7a2926b9
[CIFS] Fix walking out end of cifs dacl
Acked-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-11-05 21:46:10 +00:00
63d2583f5a
[CIFS] when mount helper missing fix slash wrong direction in share
Kernel bugzilla bug #9228

If mount helper (mount.cifs) missing, mounts with form like
//10.11.12.13/c$ would not work (only mounts with slash e.g.
//10.11.12.13\\c$ would work) due to problem with slash supposed
to be converted to backslash by the mount helper (which is not
there).

If we fail on converting an IPv4 address in in4_pton then
try to canonicalize the first slash (ie between sharename
and host ip address) if necessary.  If we have to retry
to check for IPv6 address the slash is already converted
if necessary.

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-11-01 02:12:10 +00:00
1fb64bfc45
[CIFS] acl support part 6
Acked-by: Shirish Pargaonkar <shirishp@us.ibm.com>
CC: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-10-25 21:17:17 +00:00
630f3f0c45
[CIFS] log better errors on failed mounts
Also returns more accurate errors to mount for the cases of
account expired and password expired

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-10-18 21:45:27 +00:00
a761ac579b
[CIFS] Fix minor problems noticed by scan
Coverity scan pointed out some minor possible errors.

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-10-17 21:31:52 +00:00
d5d1850109
[CIFS] More whitespace/formatting fixes (noticed by checkpatch)
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-07-17 17:34:02 +00:00
63135e088a
[CIFS] Fix build break - inet.h not included when experimental ifdef off
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-07-15 21:58:28 +00:00
4a379e6657
[CIFS] whitespace/formatting fixes
This should be the last big batch of whitespace/formatting fixes.
checkpatch warnings for the cifs directory are down about 90% and
many of the remaining ones are harder to remove or make the code
harder to read.

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-07-13 00:33:32 +00:00
50c2f75388
[CIFS] whitespace cleanup
More than halfway there

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-07-10 01:16:18 +00:00
fb8c4b14d9
[CIFS] more whitespace fixes
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-07-08 15:40:40 +00:00
3870253efb
[CIFS] more whitespace cleanup
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-07-07 19:25:05 +00:00
790fe579f5
[CIFS] ipv6 support no longer experimental
Signed-off-by: Steve French <sfrench@us.ibm.com>

Jeff   authored and   Steve French   commited 2007-07-06 21:13:08 +00:00
d20acd09e3
[CIFS] Add IPv6 support
IPv6 support was started a few years ago in the cifs client, but lacked a
kernel helper function for parsing the ascii form of the ipv6 address. Now
that that is added (and now IPv6 is the default that some OS use now) it
was fairly easy to finish  the cifs ipv6 support.  This  requires that
CIFS_EXPERIMENTAL be enabled and (at least until the mount.cifs module is
modified to use a new ipv6 friendly call instead of gethostbyname) and the
ipv6 address be passed on the mount as "ip=" mount option.

Thanks

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2007-04-25 11:59:10 +00:00
5858ae44e2
[CIFS] Fix old DOS time conversion to handle timezone
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2006-10-12 00:02:32 +00:00
533f90af6d
[CIFS] Do not need to adjust for Jan/Feb for leap day
calculation in 2100 (year divisible by 100)

Signed-off-by: Yehuda Sadeh Weinraub <Yehuda.Sadeh@expand.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2006-10-11 18:49:24 +00:00
70903ca004
[CIFS] Fix leaps year calculation for years after 2100
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2006-10-11 03:49:30 +00:00
438dd92626
[CIFS] readdir (ffirst) enablement of accurate timestamps from legacy servers
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2006-10-06 21:47:09 +00:00
268f3be177
[CIFS] Legacy time handling for Win9x and OS/2 part 1
Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2006-09-28 03:35:57 +00:00
1bd5bbcb65
[CIFS]
Allow Windows blocking locks to be cancelled via a
CANCEL_LOCK call. TODO - restrict this to servers
that support NT_STATUS codes (Win9x will probably
not support this call).

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
(cherry picked from 570d4d2d895569825d0d017d4e76b51138f68864 commit)

Jeremy Allison   authored and   Steve French   commited 2006-08-11 21:28:47 +00:00
7ee1af765d
[CIFS] Fix mapping of old SMB return code Invalid Net Name so it is
recognized on mount

the old mapping of this was to ENODEV (instead of ENXIO) - but
ENODEV is what mount returns when the cifs driver will not load
so change this to map to ENXIO (which was what the equivalent
condition returned for mapping errors from more modern servers)

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2006-06-02 18:17:11 +00:00
43411d699e
[CIFS] Support for setting up SMB sessions to legacy lanman servers part 2
Steve French   commited 2006-06-01 19:20:10 +00:00
7c7b25bc8e
[CIFS] Fix umount --force to wake up the pending response queue, not just
the request queue. Also periodically wakeup response_q so threads can
check if stuck requests have timed out. Workaround Windows server illegal smb
length on transact2 findfirst response.

Signed-off-by: Steve French <sfrench@us.ibm.com>

Steve French   commited 2005-11-29 20:55:11 -08:00
6ab16d2495
[CIFS] CIFS Stats improvements
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>

Steve French   commited 2005-10-11 19:58:06 -07:00
1047abc159
[CIFS] Various minor bigendian fixes and sparse level 2 warning message fixes
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)

Steve French   commited 2005-09-22 16:32:06 -07:00
70ca734a14
[CIFS] Add support for legacy servers part nine. statfs (df and du) is now
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)

Steve French   commited 2005-09-21 22:05:57 -07:00
2096243885
[CIFS] fs/cifs/netmisc.c: fix sparse warning
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Domen Puncer <domen@coderock.org>

Alexey Dobriyan   authored and   Steve French   commited 2005-06-02 20:01:16 -05:00
36358c2142
[PATCH] cifs: Fix mapping of EMLINK case
Signed-off-by: Steve French (sfrench@us.ibm.com)
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Steve French   authored and   Linus Torvalds   commited 2005-04-28 22:41:10 -07:00
11aa0149d0
[PATCH] cifs: Gracefully turn off serverino (when serverino is enabled on mount)
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>

Steve French   authored and   Linus Torvalds   commited 2005-04-28 22:41:04 -07:00
75cf6bdc52
Linux-2.6.12-rc2
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!

Linus Torvalds   commited 2005-04-16 15:20:36 -07:00
1da177e4c3