Lines Matching refs:tcon

172 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
187 struct cifs_ses *ses = tcon->ses;
214 if (smb3_encryption_required(tcon))
256 rc = SMB2_open_init(tcon, server,
263 smb2_set_next_command(tcon, &rqst[num_rqst]);
276 rc = SMB2_query_info_init(tcon, server,
285 rc = SMB2_query_info_init(tcon, server,
295 smb2_set_next_command(tcon, &rqst[num_rqst]);
302 tcon->tid, full_path);
310 rc = SMB2_query_info_init(tcon, server,
320 rc = SMB2_query_info_init(tcon, server,
331 smb2_set_next_command(tcon, &rqst[num_rqst]);
338 tcon->tid, full_path);
341 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path);
348 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path);
357 rc = SMB2_set_info_init(tcon, server,
364 smb2_set_next_command(tcon, &rqst[num_rqst]);
366 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path);
376 rc = SMB2_set_info_init(tcon, server,
385 rc = SMB2_set_info_init(tcon, server,
395 smb2_set_next_command(tcon, &rqst[num_rqst]);
401 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path);
411 rc = SMB2_set_info_init(tcon, server,
418 rc = SMB2_set_info_init(tcon, server,
426 smb2_set_next_command(tcon, &rqst[num_rqst]);
433 tcon->tid, full_path);
452 rc = SMB2_set_info_init(tcon, server,
459 rc = SMB2_set_info_init(tcon, server,
466 smb2_set_next_command(tcon, &rqst[num_rqst]);
472 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path);
490 rc = SMB2_set_info_init(tcon, server,
497 smb2_set_next_command(tcon, &rqst[num_rqst]);
499 trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path);
506 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
513 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
520 smb2_set_next_command(tcon, &rqst[num_rqst]);
527 tcon->tid, full_path);
534 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
540 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst],
546 smb2_set_next_command(tcon, &rqst[num_rqst]);
553 tcon->tid, full_path);
560 rc = SMB2_query_info_init(tcon, server,
570 rc = SMB2_query_info_init(tcon, server,
581 smb2_set_next_command(tcon, &rqst[num_rqst]);
603 rc = SMB2_close_init(tcon, server,
636 pr_warn_once("server share %s deleted\n", tcon->tree_name);
637 tcon->need_reconnect = true;
660 tcon->tid, rc);
663 tcon->tid);
687 tcon->tid, rc);
690 tcon->tid);
694 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc);
702 trace_smb3_delete_done(xid, ses->Suid, tcon->tid);
707 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc);
709 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid);
713 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc);
715 trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid);
720 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc);
722 trace_smb3_rename_done(xid, ses->Suid, tcon->tid);
727 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc);
729 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid);
734 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc);
736 trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid);
742 tcon->tid, rc);
745 tcon->tid);
751 tcon->tid, rc);
754 tcon->tid);
768 tcon->tid, rc);
772 tcon->tid);
778 tcon->tid, rc);
796 tcon->tid);
799 tcon->tid, rc);
820 smb2_should_replay(tcon, &retries, &cur_sleep))
860 struct cifs_tcon *tcon,
886 if (!tcon->posix_extensions) {
890 rc = open_cached_dir(xid, tcon, full_path,
899 rc = SMB2_query_info(xid, tcon,
917 cifs_get_readable_path(tcon, full_path, &cfile);
918 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES,
920 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
950 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path,
954 cifs_get_readable_path(tcon, full_path, &cfile);
955 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
964 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb,
982 struct cifs_tcon *tcon, const char *name,
987 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES,
989 return smb2_compound_op(xid, tcon, cifs_sb,
997 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon,
1013 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile);
1014 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES,
1016 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name,
1025 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
1030 drop_cached_dir_by_name(xid, tcon, name, cifs_sb);
1031 oparms = CIFS_OPARMS(cifs_sb, tcon, name, DELETE,
1033 return smb2_compound_op(xid, tcon, cifs_sb,
1040 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
1045 oparms = CIFS_OPARMS(cifs_sb, tcon, name,
1049 int rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms,
1054 rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms,
1061 static int smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon,
1080 oparms = CIFS_OPARMS(cifs_sb, tcon, from_name, access, FILE_OPEN,
1082 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name,
1091 struct cifs_tcon *tcon,
1099 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb);
1100 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile);
1102 int rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb,
1106 rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb,
1113 struct cifs_tcon *tcon,
1120 return smb2_set_path_attr(xid, tcon, from_name, to_name,
1126 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
1139 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile);
1141 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_DATA,
1143 rc = smb2_compound_op(xid, tcon, cifs_sb,
1149 rc = smb2_compound_op(xid, tcon, cifs_sb,
1164 struct cifs_tcon *tcon;
1177 tcon = tlink_tcon(tlink);
1179 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile);
1180 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_ATTRIBUTES,
1182 rc = smb2_compound_op(xid, tcon, cifs_sb,
1193 struct cifs_tcon *tcon,
1206 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path,
1221 if (tcon->posix_extensions) {
1223 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile);
1224 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms,
1232 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile);
1233 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms,
1244 struct cifs_tcon *tcon,
1258 cifs_get_readable_path(tcon, full_path, &cfile);
1259 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES,
1261 rc = smb2_compound_op(xid, tcon, cifs_sb,