Lines Matching refs:tcon
58 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
72 struct cifs_ses *ses = tcon->ses;
92 if (smb3_encryption_required(tcon))
109 .tcon = tcon,
121 rc = SMB2_open_init(tcon, server,
128 smb2_set_next_command(tcon, &rqst[num_rqst]);
140 rc = SMB2_query_info_init(tcon, server,
149 rc = SMB2_query_info_init(tcon, server,
158 smb2_set_next_command(tcon, &rqst[num_rqst]);
166 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid,
174 rc = SMB2_query_info_init(tcon, server,
184 rc = SMB2_query_info_init(tcon, server,
193 smb2_set_next_command(tcon, &rqst[num_rqst]);
201 trace_smb3_posix_query_info_compound_enter(xid, ses->Suid, tcon->tid, full_path);
204 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path);
211 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path);
220 rc = SMB2_set_info_init(tcon, server,
227 smb2_set_next_command(tcon, &rqst[num_rqst]);
229 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path);
239 rc = SMB2_set_info_init(tcon, server,
248 rc = SMB2_set_info_init(tcon, server,
257 smb2_set_next_command(tcon, &rqst[num_rqst]);
264 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path);
275 rc = SMB2_set_info_init(tcon, server,
282 rc = SMB2_set_info_init(tcon, server,
289 smb2_set_next_command(tcon, &rqst[num_rqst]);
297 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid,
317 rc = SMB2_set_info_init(tcon, server,
324 rc = SMB2_set_info_init(tcon, server,
330 smb2_set_next_command(tcon, &rqst[num_rqst]);
337 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path);
355 rc = SMB2_set_info_init(tcon, server,
362 smb2_set_next_command(tcon, &rqst[num_rqst]);
364 trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path);
380 rc = SMB2_close_init(tcon, server,
403 pr_warn_once("server share %s deleted\n", tcon->tree_name);
404 tcon->need_reconnect = true;
429 tcon->tid, rc);
432 tcon->tid);
470 trace_smb3_posix_query_info_compound_err(xid, ses->Suid, tcon->tid, rc);
472 trace_smb3_posix_query_info_compound_done(xid, ses->Suid, tcon->tid);
476 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc);
478 trace_smb3_delete_done(xid, ses->Suid, tcon->tid);
484 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc);
486 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid);
492 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc);
494 trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid);
499 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc);
501 trace_smb3_rename_done(xid, ses->Suid, tcon->tid);
506 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc);
508 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid);
513 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc);
515 trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid);
521 tcon->tid, rc);
524 tcon->tid);
575 struct cifs_tcon *tcon,
595 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, false, &cfid);
601 rc = SMB2_query_info(xid, tcon, cfid->fid.persistent_fid,
608 cifs_get_readable_path(tcon, full_path, &cfile);
609 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, FILE_READ_ATTRIBUTES, FILE_OPEN,
629 cifs_get_readable_path(tcon, full_path, &cfile);
630 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
641 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb,
659 struct cifs_tcon *tcon,
686 cifs_get_readable_path(tcon, full_path, &cfile);
687 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, FILE_READ_ATTRIBUTES, FILE_OPEN,
707 cifs_get_readable_path(tcon, full_path, &cfile);
708 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, FILE_READ_ATTRIBUTES,
744 struct cifs_tcon *tcon, const char *name,
747 return smb2_compound_op(xid, tcon, cifs_sb, name,
755 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon,
768 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile);
769 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name,
778 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
781 drop_cached_dir_by_name(xid, tcon, name, cifs_sb);
782 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN,
788 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
791 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN,
796 static int smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon,
810 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, access,
819 struct cifs_tcon *tcon,
827 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb);
828 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile);
830 return smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb,
835 struct cifs_tcon *tcon,
842 return smb2_set_path_attr(xid, tcon, from_name, to_name,
848 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
855 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile);
856 return smb2_compound_op(xid, tcon, cifs_sb, full_path,
867 struct cifs_tcon *tcon;
879 tcon = tlink_tcon(tlink);
881 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile);
882 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,