Lines Matching refs:tcon
58 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument
71 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
91 if (smb3_encryption_required(tcon)) in smb2_compound_op()
107 vars->oparms.tcon = tcon; in smb2_compound_op()
118 rc = SMB2_open_init(tcon, server, in smb2_compound_op()
125 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
137 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
146 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
155 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
163 trace_smb3_query_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
171 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
181 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
190 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
198 trace_smb3_posix_query_info_compound_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
201 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
208 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
217 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
224 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
226 trace_smb3_rmdir_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
235 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
242 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
244 trace_smb3_set_eof_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
255 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
262 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
269 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
277 trace_smb3_set_info_compound_enter(xid, ses->Suid, tcon->tid, in smb2_compound_op()
297 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
304 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
310 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
317 trace_smb3_rename_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
335 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
342 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
344 trace_smb3_hardlink_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
360 rc = SMB2_close_init(tcon, server, in smb2_compound_op()
386 pr_warn_once("server share %s deleted\n", tcon->tree_name); in smb2_compound_op()
387 tcon->need_reconnect = true; in smb2_compound_op()
412 tcon->tid, rc); in smb2_compound_op()
415 tcon->tid); in smb2_compound_op()
438 trace_smb3_posix_query_info_compound_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
440 trace_smb3_posix_query_info_compound_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
444 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
446 trace_smb3_delete_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
452 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
454 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
460 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
462 trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
467 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
469 trace_smb3_rename_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
474 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
476 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
481 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
483 trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
489 tcon->tid, rc); in smb2_compound_op()
492 tcon->tid); in smb2_compound_op()
509 int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, in smb2_query_path_info() argument
526 rc = open_cached_dir(xid, tcon, full_path, cifs_sb, false, &cfid); in smb2_query_path_info()
532 rc = SMB2_query_info(xid, tcon, cfid->fid.persistent_fid, in smb2_query_path_info()
539 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
540 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, FILE_READ_ATTRIBUTES, FILE_OPEN, in smb2_query_path_info()
559 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
560 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
588 int smb311_posix_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, in smb311_posix_query_path_info() argument
608 cifs_get_readable_path(tcon, full_path, &cfile); in smb311_posix_query_path_info()
609 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, FILE_READ_ATTRIBUTES, FILE_OPEN, in smb311_posix_query_path_info()
625 cifs_get_readable_path(tcon, full_path, &cfile); in smb311_posix_query_path_info()
626 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, FILE_READ_ATTRIBUTES, in smb311_posix_query_path_info()
640 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
643 return smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir()
651 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
664 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile); in smb2_mkdir_setinfo()
665 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
674 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
677 drop_cached_dir_by_name(xid, tcon, name, cifs_sb); in smb2_rmdir()
678 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN, in smb2_rmdir()
684 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
687 return smb2_compound_op(xid, tcon, cifs_sb, name, DELETE, FILE_OPEN, in smb2_unlink()
693 smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
706 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, access, in smb2_set_path_attr()
715 smb2_rename_path(const unsigned int xid, struct cifs_tcon *tcon, in smb2_rename_path() argument
721 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb); in smb2_rename_path()
722 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile); in smb2_rename_path()
724 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_rename_path()
729 smb2_create_hardlink(const unsigned int xid, struct cifs_tcon *tcon, in smb2_create_hardlink() argument
733 return smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_create_hardlink()
739 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
746 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
747 return smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_set_path_size()
758 struct cifs_tcon *tcon; in smb2_set_file_info() local
770 tcon = tlink_tcon(tlink); in smb2_set_file_info()
772 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_file_info()
773 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_set_file_info()