Lines Matching full:tcon
172 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument
187 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()
302 tcon->tid, full_path); 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()
338 tcon->tid, full_path); in smb2_compound_op()
341 trace_smb3_delete_enter(xid, ses->Suid, tcon->tid, full_path); in smb2_compound_op()
348 trace_smb3_mkdir_enter(xid, ses->Suid, tcon->tid, 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, ses->Suid, tcon->tid, 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, ses->Suid, tcon->tid, 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()
433 tcon->tid, full_path); 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, ses->Suid, tcon->tid, 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, ses->Suid, tcon->tid, 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()
527 tcon->tid, full_path); 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()
553 tcon->tid, full_path); 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()
660 tcon->tid, rc); in smb2_compound_op()
663 tcon->tid); in smb2_compound_op()
687 tcon->tid, rc); in smb2_compound_op()
690 tcon->tid); in smb2_compound_op()
694 trace_smb3_delete_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
702 trace_smb3_delete_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
707 trace_smb3_mkdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
709 trace_smb3_mkdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
713 trace_smb3_hardlink_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
715 trace_smb3_hardlink_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
720 trace_smb3_rename_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
722 trace_smb3_rename_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
727 trace_smb3_rmdir_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
729 trace_smb3_rmdir_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
734 trace_smb3_set_eof_err(xid, ses->Suid, tcon->tid, rc); in smb2_compound_op()
736 trace_smb3_set_eof_done(xid, ses->Suid, tcon->tid); in smb2_compound_op()
742 tcon->tid, rc); in smb2_compound_op()
745 tcon->tid); in smb2_compound_op()
751 tcon->tid, rc); in smb2_compound_op()
754 tcon->tid); in smb2_compound_op()
768 tcon->tid, rc); in smb2_compound_op()
772 tcon->tid); in smb2_compound_op()
778 tcon->tid, rc); in smb2_compound_op()
796 tcon->tid); in smb2_compound_op()
799 tcon->tid, rc); in smb2_compound_op()
820 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_compound_op()
860 struct cifs_tcon *tcon, in smb2_query_path_info() argument
886 if (!tcon->posix_extensions) { in smb2_query_path_info()
890 rc = open_cached_dir(xid, tcon, full_path, in smb2_query_path_info()
899 rc = SMB2_query_info(xid, tcon, in smb2_query_path_info()
917 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
918 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info()
920 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
952 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_path_info()
957 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
958 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
967 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_query_path_info()
985 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
990 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir()
992 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_mkdir()
1000 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
1016 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile); in smb2_mkdir_setinfo()
1017 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir_setinfo()
1019 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
1028 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
1033 drop_cached_dir_by_name(xid, tcon, name, cifs_sb); in smb2_rmdir()
1034 oparms = CIFS_OPARMS(cifs_sb, tcon, name, DELETE, in smb2_rmdir()
1036 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_rmdir()
1043 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
1048 oparms = CIFS_OPARMS(cifs_sb, tcon, name, in smb2_unlink()
1052 int rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1057 rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1064 static int smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
1083 oparms = CIFS_OPARMS(cifs_sb, tcon, from_name, access, FILE_OPEN, in smb2_set_path_attr()
1085 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, in smb2_set_path_attr()
1094 struct cifs_tcon *tcon, in smb2_rename_path() argument
1102 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb); in smb2_rename_path()
1103 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile); in smb2_rename_path()
1105 int rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1109 cifs_get_writable_path(tcon, from_name, in smb2_rename_path()
1111 rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1118 struct cifs_tcon *tcon, in smb2_create_hardlink() argument
1125 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_create_hardlink()
1131 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
1144 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1146 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_DATA, in smb2_set_path_size()
1148 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1154 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1155 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1170 struct cifs_tcon *tcon; in smb2_set_file_info() local
1183 tcon = tlink_tcon(tlink); in smb2_set_file_info()
1185 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_file_info()
1186 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_ATTRIBUTES, in smb2_set_file_info()
1188 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_file_info()
1199 struct cifs_tcon *tcon, in smb2_get_reparse_inode() argument
1216 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_get_reparse_inode()
1231 if (tcon->posix_extensions) { in smb2_get_reparse_inode()
1233 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1234 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1242 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1243 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1262 smb2_unlink(xid, tcon, full_path, cifs_sb, NULL); in smb2_get_reparse_inode()
1271 struct cifs_tcon *tcon, in smb2_query_reparse_point() argument
1285 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_reparse_point()
1286 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_reparse_point()
1289 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_query_reparse_point()