Lines Matching full:tcon

172 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,  in smb2_compound_op()  argument
183 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
214 if (smb3_encryption_required(tcon)) in smb2_compound_op()
256 rc = SMB2_open_init(tcon, server, in smb2_compound_op()
263 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
276 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
285 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
295 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
301 trace_smb3_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
310 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
320 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
331 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
337 trace_smb3_posix_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
341 trace_smb3_delete_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
348 trace_smb3_mkdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
357 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
364 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
366 trace_smb3_rmdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
376 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
385 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
395 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
401 trace_smb3_set_eof_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
411 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
418 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
426 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
432 trace_smb3_set_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
452 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
459 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
466 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
472 trace_smb3_rename_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
490 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
497 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
499 trace_smb3_hardlink_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
506 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
513 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
520 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
526 trace_smb3_set_reparse_compound_enter(xid, tcon->tid, in smb2_compound_op()
534 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
540 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
546 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
552 trace_smb3_get_reparse_compound_enter(xid, tcon->tid, in smb2_compound_op()
560 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
570 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
581 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
603 rc = SMB2_close_init(tcon, server, in smb2_compound_op()
636 pr_warn_once("server share %s deleted\n", tcon->tree_name); in smb2_compound_op()
637 tcon->need_reconnect = true; in smb2_compound_op()
666 trace_smb3_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
669 trace_smb3_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
693 trace_smb3_posix_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
696 trace_smb3_posix_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
701 trace_smb3_delete_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
709 trace_smb3_delete_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
714 trace_smb3_mkdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
716 trace_smb3_mkdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
720 trace_smb3_hardlink_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
722 trace_smb3_hardlink_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
727 trace_smb3_rename_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
729 trace_smb3_rename_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
734 trace_smb3_rmdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
736 trace_smb3_rmdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
741 trace_smb3_set_eof_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
743 trace_smb3_set_eof_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
748 trace_smb3_set_info_compound_err(xid, tcon->tid, in smb2_compound_op()
751 trace_smb3_set_info_compound_done(xid, tcon->tid, in smb2_compound_op()
757 trace_smb3_set_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
760 trace_smb3_set_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
774 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
778 trace_smb3_get_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
784 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
802 trace_smb3_query_wsl_ea_compound_done(xid, tcon->tid, in smb2_compound_op()
805 trace_smb3_query_wsl_ea_compound_err(xid, tcon->tid, in smb2_compound_op()
828 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_compound_op()
900 struct cifs_tcon *tcon, in smb2_query_path_info() argument
926 if (!tcon->posix_extensions) { in smb2_query_path_info()
930 rc = open_cached_dir(xid, tcon, full_path, in smb2_query_path_info()
939 rc = SMB2_query_info(xid, tcon, in smb2_query_path_info()
957 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
958 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info()
960 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
990 if (!tcon->posix_extensions) in smb2_query_path_info()
993 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_path_info()
998 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
1000 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1017 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_query_path_info()
1034 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
1039 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir()
1041 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_mkdir()
1049 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
1065 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile); in smb2_mkdir_setinfo()
1066 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir_setinfo()
1068 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
1077 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
1082 drop_cached_dir_by_name(xid, tcon, name, cifs_sb); in smb2_rmdir()
1083 oparms = CIFS_OPARMS(cifs_sb, tcon, name, DELETE, in smb2_rmdir()
1085 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_rmdir()
1092 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
1097 oparms = CIFS_OPARMS(cifs_sb, tcon, name, in smb2_unlink()
1101 int rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1106 rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1113 static int smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
1132 oparms = CIFS_OPARMS(cifs_sb, tcon, from_name, access, FILE_OPEN, in smb2_set_path_attr()
1134 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, in smb2_set_path_attr()
1143 struct cifs_tcon *tcon, in smb2_rename_path() argument
1151 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb); in smb2_rename_path()
1152 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile); in smb2_rename_path()
1154 int rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1158 cifs_get_writable_path(tcon, from_name, in smb2_rename_path()
1160 rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1167 struct cifs_tcon *tcon, in smb2_create_hardlink() argument
1174 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_create_hardlink()
1180 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
1193 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1195 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_DATA, in smb2_set_path_size()
1197 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1203 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1204 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1219 struct cifs_tcon *tcon; in smb2_set_file_info() local
1232 tcon = tlink_tcon(tlink); in smb2_set_file_info()
1234 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_file_info()
1235 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_ATTRIBUTES, in smb2_set_file_info()
1237 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_file_info()
1248 struct cifs_tcon *tcon, in smb2_get_reparse_inode() argument
1265 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_get_reparse_inode()
1280 if (tcon->posix_extensions) { in smb2_get_reparse_inode()
1282 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1283 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1291 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1292 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1311 smb2_unlink(xid, tcon, full_path, cifs_sb, NULL); in smb2_get_reparse_inode()
1320 struct cifs_tcon *tcon, in smb2_query_reparse_point() argument
1334 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_reparse_point()
1335 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_reparse_point()
1338 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_query_reparse_point()