1. 19 5月, 2011 6 次提交
    • S
      Introduce SMB2 Kconfig option · b34cb85c
      Steve French 提交于
      SMB2 is the followon to the CIFS (and SMB) protocols
      and the default for Windows since Windows Vista, and also
      now implemented by various non-Windows servers.  SMB2
      is more secure, has various performance advantages, including
      larger i/o sizes, flow control, better caching model and more.
      SMB2 also resolves some scalability limits in the cifs
      protocol and adds many new features while being much
      simpler (only a few dozen commands instead of hundreds)
      and since the protocol is clearer it is
      also more consistently implemented across servers
      and thus easier to optimize.
      
      After much discussion with Jeff Layton, Jeremy Allison
      and others at Connectathon, we decided to move the smb2
      code from a distinct .ko and fstype into distinct
      C files that optionally build in cifs.ko.  As a result
      the Kconfig gets simpler.
      
      To avoid destabilizing cifs, the smb2 code is going
      to be moved into its own experimental CONFIG_CIFS_SMB2 ifdef
      as it is merged and rereviewed.  The changes to stable
      cifs (builds with the smb2 ifdef off) are expected to be
      fairly small.
      Reviewed-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      b34cb85c
    • S
      Shrink stack space usage in cifs_construct_tcon · 34c87901
      Steve French 提交于
      We were reserving MAX_USERNAME (now 256) on stack for
      something which only needs to fit about 24 bytes ie
      string krb50x +  printf version of uid
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      34c87901
    • J
      fs:cifs:connect.c remove one to many l's in the word. · fd62cb7e
      Justin P. Mattock 提交于
      The patch below removes an extra "l" in the word.
      Signed-off-by: NJustin P. Mattock <justinmattock@gmail.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      fd62cb7e
    • S
      Don't compile in unused reparse point symlink code · c52a9554
      Steve French 提交于
      Recent Windows versions now create symlinks more frequently
      and they do use this "reparse point" symlink mechanism.  We can of course
      do symlinks nicely to Samba and other servers which support the
      CIFS Unix Extensions and we can also do SFU symlinks and "client only"
      "MF" symlinks optionally, but for recent Windows we currently can not
      handle the common "reparse point" symlinks fully, removing the caller
      for this. We will need to extend and reenable this "reparse point" worker
      code in cifs and fix cifs_symlink to call this.  In the interim this code
      has been moved to its own config option so it is not compiled in by default
      until cifs_symlink fixed up (and tested) to use this.
      
      CC: Jeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      c52a9554
    • S
      Remove unused CIFSSMBNotify worker function · 0eff0e26
      Steve French 提交于
      The CIFSSMBNotify worker is unused, pending changes to allow it to be called
      via inotify, so move it into its own experimental config option so it does
      not get built in, until the necessary VFS support is fixed.  It used to
      be used in dnotify, but according to Jeff, inotify needs minor changes
      before we can reenable this.
      
      CC: Jeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      0eff0e26
    • S
      cifs: Remove unused inode number while fetching root inode · 9b6763e0
      Shirish Pargaonkar 提交于
      ino is unused in function cifs_root_iget().
      Signed-off-by: NShirish Pargaonkar <shirishpargaonkar@gmail.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      9b6763e0
  2. 18 5月, 2011 4 次提交
    • J
      configfs: Fix race between configfs_readdir() and configfs_d_iput() · 24307aa1
      Joel Becker 提交于
      configfs_readdir() will use the existing inode numbers of inodes in the
      dcache, but it makes them up for attribute files that aren't currently
      instantiated.  There is a race where a closing attribute file can be
      tearing down at the same time as configfs_readdir() is trying to get its
      inode number.
      
      We want to get the inode number of open attribute files, because they
      should match while instantiated.  We can't lock down the transition
      where dentry->d_inode is set to NULL, so we just check for NULL there.
      We can, however, ensure that an inode we find isn't iput() in
      configfs_d_iput() until after we've accessed it.
      Signed-off-by: NJoel Becker <jlbec@evilplan.org>
      24307aa1
    • J
      configfs: Don't try to d_delete() negative dentries. · df7f9967
      Joel Becker 提交于
      When configfs is faking mkdir() on its subsystem or default group
      objects, it starts by adding a negative dentry.  It then tries to
      instantiate the group.  If that should fail, it must clean up after
      itself.
      
      I was using d_delete() here, but configfs_attach_group() promises to
      return an empty dentry on error.  d_delete() explodes with the entry
      dentry.  Let's try d_drop() instead.  The unhashing is what we want for
      our dentry.
      Signed-off-by: NJoel Becker <jlbec@evilplan.org>
      df7f9967
    • J
      cifs: fix cifsConvertToUCS() for the mapchars case · 11379b5e
      Jeff Layton 提交于
      As Metze pointed out, commit 84cdf74e broke mapchars option:
      
          Commit "cifs: fix unaligned accesses in cifsConvertToUCS"
          (84cdf74e) does multiple steps
          in just one commit (moving the function and changing it without
          testing).
      
          put_unaligned_le16(temp, &target[j]); is never called for any
          codepoint the goes via the 'default' switch statement. As a result
          we put just zero (or maybe uninitialized) bytes into the target
          buffer.
      
      His proposed patch looks correct, but doesn't apply to the current head
      of the tree. This patch should also fix it.
      
      Cc: <stable@kernel.org> # .38.x: 581ade4d: cifs: clean up various nits in unicode routines (try #2)
      Reported-by: NStefan Metzmacher <metze@samba.org>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      11379b5e
    • J
      cifs: add fallback in is_path_accessible for old servers · 221d1d79
      Jeff Layton 提交于
      The is_path_accessible check uses a QPathInfo call, which isn't
      supported by ancient win9x era servers. Fall back to an older
      SMBQueryInfo call if it fails with the magic error codes.
      
      Cc: stable@kernel.org
      Reported-and-Tested-by: NSandro Bonazzola <sandro.bonazzola@gmail.com>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      221d1d79
  3. 15 5月, 2011 5 次提交
  4. 14 5月, 2011 8 次提交
  5. 12 5月, 2011 6 次提交
  6. 10 5月, 2011 11 次提交