Lines Matching full:tcon
172 static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon, in smb2_compound_op() argument
184 struct cifs_ses *ses = tcon->ses; in smb2_compound_op()
215 if (smb3_encryption_required(tcon)) in smb2_compound_op()
257 rc = SMB2_open_init(tcon, server, in smb2_compound_op()
264 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
283 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
292 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
302 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
308 trace_smb3_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
317 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
327 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
338 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
344 trace_smb3_posix_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
348 trace_smb3_delete_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
355 trace_smb3_mkdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
364 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
371 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
373 trace_smb3_rmdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
383 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
392 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
402 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
408 trace_smb3_set_eof_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
418 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
425 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
433 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
439 trace_smb3_set_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
459 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
466 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
473 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
479 trace_smb3_rename_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
497 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
504 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
506 trace_smb3_hardlink_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
513 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
520 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
527 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
533 trace_smb3_set_reparse_compound_enter(xid, tcon->tid, in smb2_compound_op()
541 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
547 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
553 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
559 trace_smb3_get_reparse_compound_enter(xid, tcon->tid, in smb2_compound_op()
567 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
577 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
588 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
594 trace_smb3_query_wsl_ea_compound_enter(xid, tcon->tid, in smb2_compound_op()
612 rc = SMB2_close_init(tcon, server, in smb2_compound_op()
645 pr_warn_once("server share %s deleted\n", tcon->tree_name); in smb2_compound_op()
646 tcon->need_reconnect = true; in smb2_compound_op()
699 trace_smb3_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
702 trace_smb3_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
727 trace_smb3_posix_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
730 trace_smb3_posix_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
735 trace_smb3_delete_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
743 trace_smb3_delete_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
748 trace_smb3_mkdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
750 trace_smb3_mkdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
754 trace_smb3_hardlink_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
756 trace_smb3_hardlink_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
761 trace_smb3_rename_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
763 trace_smb3_rename_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
768 trace_smb3_rmdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
770 trace_smb3_rmdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
775 trace_smb3_set_eof_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
777 trace_smb3_set_eof_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
782 trace_smb3_set_info_compound_err(xid, tcon->tid, in smb2_compound_op()
785 trace_smb3_set_info_compound_done(xid, tcon->tid, in smb2_compound_op()
791 trace_smb3_set_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
794 trace_smb3_set_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
809 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
813 trace_smb3_get_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
819 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
838 trace_smb3_query_wsl_ea_compound_done(xid, tcon->tid, in smb2_compound_op()
841 trace_smb3_query_wsl_ea_compound_err(xid, tcon->tid, in smb2_compound_op()
864 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_compound_op()
936 struct cifs_tcon *tcon, in smb2_query_path_info() argument
962 if (!tcon->posix_extensions) { in smb2_query_path_info()
966 rc = open_cached_dir(xid, tcon, full_path, in smb2_query_path_info()
975 rc = SMB2_query_info(xid, tcon, in smb2_query_path_info()
993 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
994 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info()
996 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1027 if (tcon->posix_extensions) in smb2_query_path_info()
1034 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, MAXIMUM_ALLOWED, in smb2_query_path_info()
1037 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1063 if (!tcon->posix_extensions) in smb2_query_path_info()
1066 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_path_info()
1071 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
1073 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1095 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_query_path_info()
1112 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
1117 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir()
1119 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_mkdir()
1127 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
1143 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile); in smb2_mkdir_setinfo()
1144 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir_setinfo()
1146 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
1155 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
1160 drop_cached_dir_by_name(xid, tcon, name, cifs_sb); in smb2_rmdir()
1161 oparms = CIFS_OPARMS(cifs_sb, tcon, name, DELETE, in smb2_rmdir()
1163 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_rmdir()
1170 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
1175 oparms = CIFS_OPARMS(cifs_sb, tcon, name, in smb2_unlink()
1179 int rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1184 rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1191 static int smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
1210 oparms = CIFS_OPARMS(cifs_sb, tcon, from_name, access, FILE_OPEN, in smb2_set_path_attr()
1212 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, in smb2_set_path_attr()
1221 struct cifs_tcon *tcon, in smb2_rename_path() argument
1229 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb); in smb2_rename_path()
1230 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile); in smb2_rename_path()
1232 int rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1236 cifs_get_writable_path(tcon, from_name, in smb2_rename_path()
1238 rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1245 struct cifs_tcon *tcon, in smb2_create_hardlink() argument
1252 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_create_hardlink()
1258 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
1271 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1273 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_DATA, in smb2_set_path_size()
1275 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1281 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1282 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1297 struct cifs_tcon *tcon; in smb2_set_file_info() local
1310 tcon = tlink_tcon(tlink); in smb2_set_file_info()
1312 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_file_info()
1313 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_ATTRIBUTES, in smb2_set_file_info()
1315 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_file_info()
1326 struct cifs_tcon *tcon, in smb2_get_reparse_inode() argument
1348 if (!(le32_to_cpu(tcon->fsAttrInfo.Attributes) & FILE_SUPPORTS_REPARSE_POINTS)) in smb2_get_reparse_inode()
1351 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_get_reparse_inode()
1366 if (tcon->posix_extensions) { in smb2_get_reparse_inode()
1368 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1369 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1377 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_get_reparse_inode()
1378 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_get_reparse_inode()
1397 smb2_unlink(xid, tcon, full_path, cifs_sb, NULL); in smb2_get_reparse_inode()
1406 struct cifs_tcon *tcon, in smb2_query_reparse_point() argument
1420 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_reparse_point()
1421 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_reparse_point()
1424 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_query_reparse_point()