1. 14 3月, 2013 1 次提交
  2. 06 12月, 2012 1 次提交
  3. 27 9月, 2012 1 次提交
    • J
      cifs: change DOS/NT/POSIX mapping of ERRnoresource · 4f2b86ab
      Jeff Layton 提交于
      ERRnoresource is an ERRSRV level (aka server-side) error and means "No
      resources currently available for request". Currently that maps to POSIX
      -ENOBUFS. No NT errors map to it currently.
      
      NT_STATUS_INSUFFICIENT_RESOURCES and NT_STATUS_INSUFF_SERVER_RESOURCES
      are also similar in meaning. Currently the client maps those to
      ERRnomem, which maps to -ENOMEM in POSIX.
      
      All of these mappings seem to be quite wrong to me and are confusing for
      users. All of the above errors indicate problems on the server, not the
      client. Reporting -ENOMEM or -ENOBUFS implies that the client is running
      out of resources.
      
      This patch changes those mappings. The NT_* errors are changed to map to
      the SRV level ERRnoresource. That error is in turn changed to return
      -EREMOTEIO which is the only POSIX error I could find that conveys that
      something went wrong on the server. While we're at it, change the SMB2
      equivalent error to return the same.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Acked-by: NSuresh Jayaraman <sjayaraman@suse.com>
      Signed-off-by: NSteve French <smfrench@gmail.com>
      4f2b86ab
  4. 25 9月, 2012 1 次提交
  5. 01 4月, 2012 1 次提交
  6. 24 3月, 2012 1 次提交
  7. 23 5月, 2011 1 次提交
    • J
      cifs: consolidate SendReceive response checks · 2c8f981d
      Jeff Layton 提交于
      Further consolidate the SendReceive code by moving the checks run over
      the packet into a separate function that all the SendReceive variants
      can call.
      
      We can also eliminate the check for a receive_len that's too big or too
      small. cifs_demultiplex_thread already checks that and disconnects the
      socket if that occurs, while setting the midStatus to MALFORMED. It'll
      never call this code if that's the case.
      
      Finally do a little cleanup. Use "goto out" on errors so that the flow
      of code in the normal case is more evident. Also switch the logErr
      variable in map_smb_to_linux_error to a bool.
      Reviewed-by: NPavel Shilovsky <piastry@etersoft.ru>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      2c8f981d
  8. 19 5月, 2011 1 次提交
    • J
      cifs: keep BCC in little-endian format · 820a803f
      Jeff Layton 提交于
      This is the same patch as originally posted, just with some merge
      conflicts fixed up...
      
      Currently, the ByteCount is usually converted to host-endian on receive.
      This is confusing however, as we need to keep two sets of routines for
      accessing it, and keep track of when to use each routine. Munging
      received packets like this also limits when the signature can be
      calulated.
      
      Simplify the code by keeping the received ByteCount in little-endian
      format. This allows us to eliminate a set of routines for accessing it
      and we can now drop the *_le suffixes from the accessor functions since
      that's now implied.
      
      While we're at it, switch all of the places that read the ByteCount
      directly to use the get_bcc inline which should also clean up some
      unaligned accesses.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      820a803f
  9. 17 2月, 2011 1 次提交
  10. 21 1月, 2011 1 次提交
  11. 15 1月, 2011 1 次提交
  12. 09 9月, 2010 1 次提交
  13. 06 8月, 2010 1 次提交
  14. 02 8月, 2010 2 次提交
  15. 21 4月, 2010 1 次提交
    • J
      [CIFS] Neaten cERROR and cFYI macros, reduce text space · b6b38f70
      Joe Perches 提交于
      Neaten cERROR and cFYI macros, reduce text space
      ~2.5K
      
      Convert '__FILE__ ": " fmt' to '"%s: " fmt', __FILE__' to save text space
      Surround macros with do {} while
      Add parentheses to macros
      Make statement expression macro from macro with assign
      Remove now unnecessary parentheses from cFYI and cERROR uses
      
      defconfig with CIFS support old
      $ size fs/cifs/built-in.o
         text	   data	    bss	    dec	    hex	filename
       156012	   1760	    148	 157920	  268e0	fs/cifs/built-in.o
      
      defconfig with CIFS support old
      $ size fs/cifs/built-in.o
         text	   data	    bss	    dec	    hex	filename
       153508	   1760	    148	 155416	  25f18	fs/cifs/built-in.o
      
      allyesconfig old:
      $ size fs/cifs/built-in.o
         text	   data	    bss	    dec	    hex	filename
       309138	   3864	  74824	 387826	  5eaf2	fs/cifs/built-in.o
      
      allyesconfig new
      $ size fs/cifs/built-in.o
         text	   data	    bss	    dec	    hex	filename
       305655	   3864	  74824	 384343	  5dd57	fs/cifs/built-in.o
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      b6b38f70
  16. 25 6月, 2009 1 次提交
  17. 15 6月, 2009 1 次提交
  18. 13 6月, 2009 1 次提交
  19. 28 5月, 2009 2 次提交
  20. 01 5月, 2009 1 次提交
  21. 13 5月, 2008 1 次提交
  22. 09 5月, 2008 1 次提交
  23. 13 2月, 2008 1 次提交
  24. 08 2月, 2008 1 次提交
  25. 06 11月, 2007 1 次提交
  26. 01 11月, 2007 1 次提交
    • S
      [CIFS] when mount helper missing fix slash wrong direction in share · 1fb64bfc
      Steve French 提交于
      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: NSteve French <sfrench@us.ibm.com>
      1fb64bfc
  27. 26 10月, 2007 1 次提交
  28. 19 10月, 2007 1 次提交
  29. 18 10月, 2007 1 次提交
  30. 18 7月, 2007 1 次提交
  31. 16 7月, 2007 1 次提交
  32. 13 7月, 2007 1 次提交
  33. 10 7月, 2007 1 次提交
  34. 08 7月, 2007 2 次提交
  35. 07 7月, 2007 1 次提交
  36. 25 4月, 2007 1 次提交
    • S
      [CIFS] Add IPv6 support · 5858ae44
      Steve French 提交于
      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: NSteve French <sfrench@us.ibm.com>
      5858ae44
  37. 12 10月, 2006 1 次提交