1. 09 7月, 2021 1 次提交
  2. 20 5月, 2021 1 次提交
  3. 08 5月, 2021 1 次提交
  4. 05 5月, 2021 1 次提交
    • P
      cifs: fix regression when mounting shares with prefix paths · 5c1acf3f
      Paulo Alcantara 提交于
      The commit 315db9a0 ("cifs: fix leak in cifs_smb3_do_mount() ctx")
      revealed an existing bug when mounting shares that contain a prefix
      path or DFS links.
      
      cifs_setup_volume_info() requires the @devname to contain the full
      path (UNC + prefix) to update the fs context with the new UNC and
      prepath values, however we were passing only the UNC
      path (old_ctx->UNC) in @device thus discarding any prefix paths.
      
      Instead of concatenating both old_ctx->{UNC,prepath} and pass it in
      @devname, just keep the dup'ed values of UNC and prepath in
      cifs_sb->ctx after calling smb3_fs_context_dup(), and fix
      smb3_parse_devname() to correctly parse and not leak the new UNC and
      prefix paths.
      
      Cc: <stable@vger.kernel.org> # v5.11+
      Fixes: 315db9a0 ("cifs: fix leak in cifs_smb3_do_mount() ctx")
      Signed-off-by: NPaulo Alcantara (SUSE) <pc@cjr.nz>
      Acked-by: NDavid Disseldorp <ddiss@suse.de>
      Signed-off-by: NSteve French <stfrench@microsoft.com>
      5c1acf3f
  5. 04 5月, 2021 1 次提交
    • S
      cifs: add shutdown support · 087f757b
      Steve French 提交于
      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: NSteve French <stfrench@microsoft.com>
      Reviewed-by: NAurelien Aptel <aaptel@suse.com>
      087f757b
  6. 26 4月, 2021 4 次提交
  7. 19 3月, 2021 1 次提交
  8. 26 2月, 2021 3 次提交
  9. 16 2月, 2021 1 次提交
  10. 12 2月, 2021 1 次提交
  11. 10 2月, 2021 1 次提交
  12. 29 1月, 2021 3 次提交
  13. 28 1月, 2021 1 次提交
  14. 14 1月, 2021 1 次提交
  15. 17 12月, 2020 2 次提交
  16. 16 12月, 2020 2 次提交
  17. 15 12月, 2020 2 次提交
  18. 14 12月, 2020 13 次提交