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()
587 trace_smb3_query_wsl_ea_compound_enter(xid, tcon->tid, in smb2_compound_op()
605 rc = SMB2_close_init(tcon, server, in smb2_compound_op()
638 pr_warn_once("server share %s deleted\n", tcon->tree_name); in smb2_compound_op()
639 tcon->need_reconnect = true; in smb2_compound_op()
669 trace_smb3_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
672 trace_smb3_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
697 trace_smb3_posix_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
700 trace_smb3_posix_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
705 trace_smb3_delete_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
713 trace_smb3_delete_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
718 trace_smb3_mkdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
720 trace_smb3_mkdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
724 trace_smb3_hardlink_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
726 trace_smb3_hardlink_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
731 trace_smb3_rename_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
733 trace_smb3_rename_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
738 trace_smb3_rmdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
740 trace_smb3_rmdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
745 trace_smb3_set_eof_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
747 trace_smb3_set_eof_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
752 trace_smb3_set_info_compound_err(xid, tcon->tid, in smb2_compound_op()
755 trace_smb3_set_info_compound_done(xid, tcon->tid, in smb2_compound_op()
761 trace_smb3_set_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
764 trace_smb3_set_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
779 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
783 trace_smb3_get_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
789 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
808 trace_smb3_query_wsl_ea_compound_done(xid, tcon->tid, in smb2_compound_op()
811 trace_smb3_query_wsl_ea_compound_err(xid, tcon->tid, in smb2_compound_op()
834 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_compound_op()
906 struct cifs_tcon *tcon, in smb2_query_path_info() argument
932 if (!tcon->posix_extensions) { in smb2_query_path_info()
936 rc = open_cached_dir(xid, tcon, full_path, in smb2_query_path_info()
945 rc = SMB2_query_info(xid, tcon, in smb2_query_path_info()
963 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
964 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info()
966 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
996 if (!tcon->posix_extensions) in smb2_query_path_info()
999 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_path_info()
1004 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
1006 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1028 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_query_path_info()
1045 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
1050 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir()
1052 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_mkdir()
1060 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
1076 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile); in smb2_mkdir_setinfo()
1077 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir_setinfo()
1079 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
1088 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
1093 drop_cached_dir_by_name(xid, tcon, name, cifs_sb); in smb2_rmdir()
1094 oparms = CIFS_OPARMS(cifs_sb, tcon, name, DELETE, in smb2_rmdir()
1096 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_rmdir()
1103 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
1108 oparms = CIFS_OPARMS(cifs_sb, tcon, name, in smb2_unlink()
1112 int rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1117 rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1124 static int smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
1143 oparms = CIFS_OPARMS(cifs_sb, tcon, from_name, access, FILE_OPEN, in smb2_set_path_attr()
1145 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, in smb2_set_path_attr()
1154 struct cifs_tcon *tcon, in smb2_rename_path() argument
1162 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb); in smb2_rename_path()
1163 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile); in smb2_rename_path()
1165 int rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1169 cifs_get_writable_path(tcon, from_name, in smb2_rename_path()
1171 rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1178 struct cifs_tcon *tcon, in smb2_create_hardlink() argument
1185 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_create_hardlink()
1191 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
1204 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1206 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_DATA, in smb2_set_path_size()
1208 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1214 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1215 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1230 struct cifs_tcon *tcon; in smb2_set_file_info() local
1243 tcon = tlink_tcon(tlink); in smb2_set_file_info()
1245 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_file_info()
1246 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_ATTRIBUTES, in smb2_set_file_info()
1248 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_file_info()
1259 struct cifs_tcon *tcon, in smb2_get_reparse_inode() argument
1276 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_get_reparse_inode()
1291 if (tcon->posix_extensions) { in smb2_get_reparse_inode()
1293 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1294 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1302 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1303 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1322 smb2_unlink(xid, tcon, full_path, cifs_sb, NULL); in smb2_get_reparse_inode()
1331 struct cifs_tcon *tcon, in smb2_query_reparse_point() argument
1345 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_reparse_point()
1346 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_reparse_point()
1349 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_query_reparse_point()