1. 12 Mar, 2009 3 commits
    • Steve French's avatar
      [CIFS] Add new nostrictsync cifs mount option to avoid slow SMB flush · be652445
      Steve French authored
      If this mount option is set, when an application does an
      fsync call then the cifs client does not send an SMB Flush
      to the server (to force the server to write all dirty data
      for this file immediately to disk), although cifs still sends
      all dirty (cached) file data to the server and waits for the
      server to respond to the write write.  Since SMB Flush can be
      very slow, and some servers may be reliable enough (to risk
      delaying slightly flushing the data to disk on the server),
      turning on this option may be useful to improve performance for
      applications that fsync too much, at a small risk of server
      crash.  If this mount option is not set, by default cifs will
      send an SMB flush request (and wait for a response) on every
      fsync call.
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      be652445
    • Steve French's avatar
      [CIFS] DFS no longer experimental · 10e70afa
      Steve French authored
      Also updates some DFS flag definitions
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      10e70afa
    • Steve French's avatar
      [CIFS] Send SMB flush in cifs_fsync · b298f223
      Steve French authored
      In contrast to the now-obsolete smbfs, cifs does not send SMB_COM_FLUSH
      in response to an explicit fsync(2) to guarantee that all volatile data
      is written to stable storage on the server side, provided the server
      honors the request (which, to my knowledge, is true for Windows and
      Samba with 'strict sync' enabled).
      This patch modifies the cifs_fsync implementation to restore the
      fsync-behavior of smbfs by triggering SMB_COM_FLUSH after sending
      outstanding data on the client side to the server.
      Signed-off-by: default avatarHorst Reiterer <horst.reiterer@gmail.com>
      Acked-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      b298f223
  2. 11 Mar, 2009 13 commits
  3. 10 Mar, 2009 24 commits