Lines Matching refs:tcon
63 smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
76 struct cifs_ses *ses = tcon->ses;
95 if (smb3_encryption_required(tcon))
111 vars->oparms.tcon = tcon;
122 rc = SMB2_open_init(tcon, server,
129 smb2_set_next_command(tcon, &rqst[num_rqst]);
141 rc = SMB2_query_info_init(tcon, server,
150 rc = SMB2_query_info_init(tcon, server,
159 smb2_set_next_command(tcon, &rqst[num_rqst]);
167 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid,
175 rc = SMB2_query_info_init(tcon, server,
185 rc = SMB2_query_info_init(tcon, server,
194 smb2_set_next_command(tcon, &rqst[num_rqst]);
202 trace_smb3_posix_query_info_compound_enter(xid, ses->Suid, tcon->tid, full_path);
205 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path);
212 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path);
221 rc = SMB2_set_info_init(tcon, server,
228 smb2_set_next_command(tcon, &rqst[num_rqst]);
230 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path);
240 rc = SMB2_set_info_init(tcon, server,
249 rc = SMB2_set_info_init(tcon, server,
258 smb2_set_next_command(tcon, &rqst[num_rqst]);
265 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path);
276 rc = SMB2_set_info_init(tcon, server,
283 rc = SMB2_set_info_init(tcon, server,
290 smb2_set_next_command(tcon, &rqst[num_rqst]);
298 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid,
318 rc = SMB2_set_info_init(tcon, server,
325 rc = SMB2_set_info_init(tcon, server,
331 smb2_set_next_command(tcon, &rqst[num_rqst]);
338 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path);
356 rc = SMB2_set_info_init(tcon, server,
363 smb2_set_next_command(tcon, &rqst[num_rqst]);
365 trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path);
381 rc = SMB2_close_init(tcon, server,
407 pr_warn_once("server share %s deleted\n", tcon->treeName);
408 tcon->need_reconnect = true;
428 tcon->tid, rc);
431 tcon->tid);
447 trace_smb3_posix_query_info_compound_err(xid, ses->Suid, tcon->tid, rc);
449 trace_smb3_posix_query_info_compound_done(xid, ses->Suid, tcon->tid);
453 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc);
455 trace_smb3_delete_done(xid, ses->Suid, tcon->tid);
461 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc);
463 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid);
469 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc);
471 trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid);
476 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc);
478 trace_smb3_rename_done(xid, ses->Suid, tcon->tid);
483 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc);
485 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid);
490 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc);
492 trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid);
498 tcon->tid, rc);
501 tcon->tid);
523 smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
530 bool no_cached_open = tcon->nohandlecache;
544 rc = open_shroot(xid, tcon, cifs_sb, &cfid);
548 if (tcon->crfid.file_all_info_is_valid) {
550 &tcon->crfid.file_all_info);
552 rc = SMB2_query_info(xid, tcon,
562 cifs_get_readable_path(tcon, full_path, &cfile);
563 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
571 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
587 smb311_posix_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,
612 cifs_get_readable_path(tcon, full_path, &cfile);
613 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
622 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path,
640 struct cifs_tcon *tcon, const char *name,
643 return smb2_compound_op(xid, tcon, cifs_sb, name,
651 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon,
664 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile);
665 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name,
674 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
677 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN,
683 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name,
686 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN,
692 smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon,
705 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, access,
714 smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon,
720 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile);
722 return smb2_set_path_attr(xid, tcon, from_name, to_name,
727 smb2_create_hardlink(const unsigned int xid, struct cifs_tcon *tcon,
731 return smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb,
737 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon,
743 return smb2_compound_op(xid, tcon, cifs_sb, full_path,