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