1. 03 May, 2021 2 commits
    • Steve French's avatar
      cifs: add shutdown support · 087f757b
      Steve French authored
      Various filesystem support the shutdown ioctl which is used by various
      xfstests. The shutdown ioctl sets a flag on the superblock which
      prevents open, unlink, symlink, hardlink, rmdir, create etc.
      on the file system until unmount and remounted. The two flags supported
      in this patch are:
      
        FSOP_GOING_FLAGS_LOGFLUSH and FSOP_GOING_FLAGS_NOLOGFLUSH
      
      which require very little other than blocking new operations (since
      we do not cache writes to metadata on the client with cifs.ko).
      FSOP_GOING_FLAGS_DEFAULT is not supported yet, but could be added in
      the future but would need to call syncfs or equivalent to write out
      pending data on the mount.
      
      With this patch various xfstests now work including tests 043 through
      046 for example.
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
      087f757b
    • Rohith Surabattula's avatar
      cifs: Deferred close for files · c3f207ab
      Rohith Surabattula authored
      When file is closed, SMB2 close request is not sent to server
      immediately and is deferred for acregmax defined interval. When file is
      reopened by same process for read or write, the file handle
      is reused if an oplock is held.
      
      When client receives a oplock/lease break, file is closed immediately
      if reference count is zero, else oplock is downgraded.
      Signed-off-by: default avatarRohith Surabattula <rohiths@microsoft.com>
      Reviewed-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      c3f207ab
  2. 28 Apr, 2021 1 commit
  3. 26 Apr, 2021 2 commits
  4. 25 Apr, 2021 35 commits