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()
217 if (smb3_encryption_required(tcon)) in smb2_compound_op()
259 rc = SMB2_open_init(tcon, server, in smb2_compound_op()
266 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
285 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
294 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
304 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
310 trace_smb3_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
319 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
329 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
340 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
346 trace_smb3_posix_query_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
350 trace_smb3_delete_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
357 trace_smb3_mkdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
366 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
373 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
375 trace_smb3_rmdir_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
385 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
394 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
404 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
410 trace_smb3_set_eof_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
420 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
427 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
435 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
441 trace_smb3_set_info_compound_enter(xid, tcon->tid, in smb2_compound_op()
461 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
468 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
475 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
481 trace_smb3_rename_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
499 rc = SMB2_set_info_init(tcon, server, in smb2_compound_op()
506 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
508 trace_smb3_hardlink_enter(xid, tcon->tid, ses->Suid, full_path); in smb2_compound_op()
515 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
522 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
529 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
535 trace_smb3_set_reparse_compound_enter(xid, tcon->tid, in smb2_compound_op()
543 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
549 rc = SMB2_ioctl_init(tcon, server, &rqst[num_rqst], in smb2_compound_op()
555 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
561 trace_smb3_get_reparse_compound_enter(xid, tcon->tid, in smb2_compound_op()
569 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
579 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op()
590 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
596 trace_smb3_query_wsl_ea_compound_enter(xid, tcon->tid, in smb2_compound_op()
614 rc = SMB2_close_init(tcon, server, in smb2_compound_op()
647 pr_warn_once("server share %s deleted\n", tcon->tree_name); in smb2_compound_op()
648 tcon->need_reconnect = true; in smb2_compound_op()
701 trace_smb3_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
704 trace_smb3_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
729 trace_smb3_posix_query_info_compound_err(xid, tcon->tid, in smb2_compound_op()
732 trace_smb3_posix_query_info_compound_done(xid, tcon->tid, in smb2_compound_op()
737 trace_smb3_delete_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
745 trace_smb3_delete_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
750 trace_smb3_mkdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
752 trace_smb3_mkdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
756 trace_smb3_hardlink_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
758 trace_smb3_hardlink_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
763 trace_smb3_rename_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
765 trace_smb3_rename_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
770 trace_smb3_rmdir_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
772 trace_smb3_rmdir_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
777 trace_smb3_set_eof_err(xid, tcon->tid, ses->Suid, rc); in smb2_compound_op()
779 trace_smb3_set_eof_done(xid, tcon->tid, ses->Suid); in smb2_compound_op()
784 trace_smb3_set_info_compound_err(xid, tcon->tid, in smb2_compound_op()
787 trace_smb3_set_info_compound_done(xid, tcon->tid, in smb2_compound_op()
793 trace_smb3_set_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
796 trace_smb3_set_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
811 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
815 trace_smb3_get_reparse_compound_done(xid, tcon->tid, in smb2_compound_op()
821 trace_smb3_get_reparse_compound_err(xid, tcon->tid, in smb2_compound_op()
840 trace_smb3_query_wsl_ea_compound_done(xid, tcon->tid, in smb2_compound_op()
843 trace_smb3_query_wsl_ea_compound_err(xid, tcon->tid, in smb2_compound_op()
866 smb2_should_replay(tcon, &retries, &cur_sleep)) in smb2_compound_op()
939 struct cifs_tcon *tcon, in smb2_query_path_info() argument
965 if (!tcon->posix_extensions) { in smb2_query_path_info()
969 rc = open_cached_dir(xid, tcon, full_path, in smb2_query_path_info()
978 rc = SMB2_query_info(xid, tcon, in smb2_query_path_info()
996 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
997 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_READ_ATTRIBUTES, in smb2_query_path_info()
999 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1030 if (tcon->posix_extensions) in smb2_query_path_info()
1037 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, MAXIMUM_ALLOWED, in smb2_query_path_info()
1040 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1066 if (!tcon->posix_extensions) in smb2_query_path_info()
1070 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_path_info()
1075 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_path_info()
1077 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, in smb2_query_path_info()
1099 rc2 = cifs_inval_name_dfs_link_error(xid, tcon, cifs_sb, in smb2_query_path_info()
1116 struct cifs_tcon *tcon, const char *name, in smb2_mkdir() argument
1121 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir()
1123 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_mkdir()
1131 struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, in smb2_mkdir_setinfo() argument
1147 cifs_get_writable_path(tcon, name, FIND_WR_ANY, &cfile); in smb2_mkdir_setinfo()
1148 oparms = CIFS_OPARMS(cifs_sb, tcon, name, FILE_WRITE_ATTRIBUTES, in smb2_mkdir_setinfo()
1150 tmprc = smb2_compound_op(xid, tcon, cifs_sb, name, in smb2_mkdir_setinfo()
1159 smb2_rmdir(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_rmdir() argument
1164 drop_cached_dir_by_name(xid, tcon, name, cifs_sb); in smb2_rmdir()
1165 oparms = CIFS_OPARMS(cifs_sb, tcon, name, DELETE, in smb2_rmdir()
1167 return smb2_compound_op(xid, tcon, cifs_sb, in smb2_rmdir()
1174 smb2_unlink(const unsigned int xid, struct cifs_tcon *tcon, const char *name, in smb2_unlink() argument
1179 oparms = CIFS_OPARMS(cifs_sb, tcon, name, in smb2_unlink()
1183 int rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1188 rc = smb2_compound_op(xid, tcon, cifs_sb, name, &oparms, in smb2_unlink()
1195 static int smb2_set_path_attr(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_attr() argument
1214 oparms = CIFS_OPARMS(cifs_sb, tcon, from_name, access, FILE_OPEN, in smb2_set_path_attr()
1216 rc = smb2_compound_op(xid, tcon, cifs_sb, from_name, in smb2_set_path_attr()
1225 struct cifs_tcon *tcon, in smb2_rename_path() argument
1233 drop_cached_dir_by_name(xid, tcon, from_name, cifs_sb); in smb2_rename_path()
1234 cifs_get_writable_path(tcon, from_name, FIND_WR_WITH_DELETE, &cfile); in smb2_rename_path()
1236 int rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1240 cifs_get_writable_path(tcon, from_name, in smb2_rename_path()
1242 rc = smb2_set_path_attr(xid, tcon, from_name, to_name, cifs_sb, in smb2_rename_path()
1249 struct cifs_tcon *tcon, in smb2_create_hardlink() argument
1256 return smb2_set_path_attr(xid, tcon, from_name, to_name, in smb2_create_hardlink()
1262 smb2_set_path_size(const unsigned int xid, struct cifs_tcon *tcon, in smb2_set_path_size() argument
1275 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1277 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_DATA, in smb2_set_path_size()
1279 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1285 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_path_size()
1286 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_path_size()
1301 struct cifs_tcon *tcon; in smb2_set_file_info() local
1314 tcon = tlink_tcon(tlink); in smb2_set_file_info()
1316 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_set_file_info()
1317 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, FILE_WRITE_ATTRIBUTES, in smb2_set_file_info()
1319 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_set_file_info()
1330 struct cifs_tcon *tcon, in smb2_create_reparse_inode() argument
1352 if (!CIFS_REPARSE_SUPPORT(tcon)) in smb2_create_reparse_inode()
1355 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_create_reparse_inode()
1370 if (tcon->posix_extensions) { in smb2_create_reparse_inode()
1372 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_create_reparse_inode()
1373 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_create_reparse_inode()
1381 cifs_get_writable_path(tcon, full_path, FIND_WR_ANY, &cfile); in smb2_create_reparse_inode()
1382 rc = smb2_compound_op(xid, tcon, cifs_sb, full_path, &oparms, in smb2_create_reparse_inode()
1401 smb2_unlink(xid, tcon, full_path, cifs_sb, NULL); in smb2_create_reparse_inode()
1410 struct cifs_tcon *tcon, in smb2_query_reparse_point() argument
1424 cifs_get_readable_path(tcon, full_path, &cfile); in smb2_query_reparse_point()
1425 oparms = CIFS_OPARMS(cifs_sb, tcon, full_path, in smb2_query_reparse_point()
1428 rc = smb2_compound_op(xid, tcon, cifs_sb, in smb2_query_reparse_point()