Lines Matching refs:tcon
382 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() local
394 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix()
419 struct cifs_tcon *tcon; in cifs_get_unix_fattr() local
428 tcon = tlink_tcon(tlink); in cifs_get_unix_fattr()
429 server = tcon->ses->server; in cifs_get_unix_fattr()
432 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, in cifs_get_unix_fattr()
451 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_unix_fattr()
458 rc = server->ops->query_symlink(xid, tcon, in cifs_get_unix_fattr()
508 struct cifs_tcon *tcon; in cifs_sfu_type() local
534 tcon = tlink_tcon(tlink); in cifs_sfu_type()
537 .tcon = tcon, in cifs_sfu_type()
546 if (tcon->ses->server->oplocks) in cifs_sfu_type()
550 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type()
560 io_parms.tcon = tcon; in cifs_sfu_type()
564 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, in cifs_sfu_type()
606 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_sfu_type()
626 struct cifs_tcon *tcon; in cifs_sfu_mode() local
631 tcon = tlink_tcon(tlink); in cifs_sfu_mode()
633 if (tcon->ses->server->ops->query_all_EAs == NULL) { in cifs_sfu_mode()
638 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path, in cifs_sfu_mode()
668 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in smb311_posix_info_to_fattr() local
685 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; in smb311_posix_info_to_fattr()
686 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; in smb311_posix_info_to_fattr()
762 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_open_info_to_fattr() local
778 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; in cifs_open_info_to_fattr()
779 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; in cifs_open_info_to_fattr()
798 if (!tcon->unix_ext) in cifs_open_info_to_fattr()
812 if ((fattr->cf_nlink < 1) && !tcon->unix_ext && in cifs_open_info_to_fattr()
839 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info() local
840 struct TCP_Server_Info *server = tcon->ses->server; in cifs_get_file_info()
846 rc = server->ops->query_file_info(xid, tcon, cfile, &data); in cifs_get_file_info()
918 struct cifs_tcon *tcon, in cifs_backup_query_path_info() argument
931 if (tcon->unix_ext) in cifs_backup_query_path_info()
933 else if ((tcon->ses->capabilities & in cifs_backup_query_path_info()
934 tcon->ses->server->vals->cap_nt_find) == 0) in cifs_backup_query_path_info()
945 rc = CIFSFindFirst(xid, tcon, full_path, in cifs_backup_query_path_info()
956 static void cifs_set_fattr_ino(int xid, struct cifs_tcon *tcon, struct super_block *sb, in cifs_set_fattr_ino() argument
961 struct TCP_Server_Info *server = tcon->ses->server; in cifs_set_fattr_ino()
976 rc = server->ops->get_srv_inum(xid, *inode ? NULL : tcon, cifs_sb, full_path, in cifs_set_fattr_ino()
1001 fattr->cf_uniqueid = simple_hashstr(tcon->tree_name); in cifs_set_fattr_ino()
1014 struct cifs_tcon *tcon, in reparse_info_to_fattr() argument
1018 struct TCP_Server_Info *server = tcon->ses->server; in reparse_info_to_fattr()
1026 rc = server->ops->query_reparse_point(xid, tcon, cifs_sb, in reparse_info_to_fattr()
1039 rc = server->ops->query_symlink(xid, tcon, in reparse_info_to_fattr()
1064 struct cifs_tcon *tcon; in cifs_get_fattr() local
1075 tcon = tlink_tcon(tlink); in cifs_get_fattr()
1076 server = tcon->ses->server; in cifs_get_fattr()
1083 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in cifs_get_fattr()
1100 rc = reparse_info_to_fattr(data, sb, xid, tcon, in cifs_get_fattr()
1127 rc = cifs_backup_query_path_info(xid, tcon, sb, in cifs_get_fattr()
1159 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, fattr); in cifs_get_fattr()
1204 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_fattr()
1246 struct cifs_tcon *tcon; in smb311_posix_get_fattr() local
1255 tcon = tlink_tcon(tlink); in smb311_posix_get_fattr()
1261 rc = smb311_posix_query_path_info(xid, tcon, cifs_sb, in smb311_posix_get_fattr()
1296 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in smb311_posix_get_fattr()
1432 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_root_iget() local
1454 if (tcon->unix_ext) { in cifs_root_iget()
1460 tcon->unix_ext = false; in cifs_root_iget()
1464 if (tcon->posix_extensions) in cifs_root_iget()
1483 if (rc && tcon->pipe) { in cifs_root_iget()
1574 struct cifs_tcon *tcon; in cifs_rename_pending_delete() local
1581 tcon = tlink_tcon(tlink); in cifs_rename_pending_delete()
1587 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) { in cifs_rename_pending_delete()
1593 .tcon = tcon, in cifs_rename_pending_delete()
1623 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1634 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL, in cifs_rename_pending_delete()
1644 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid, in cifs_rename_pending_delete()
1664 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_rename_pending_delete()
1676 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name, in cifs_rename_pending_delete()
1681 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1718 struct cifs_tcon *tcon; in cifs_unlink() local
1731 tcon = tlink_tcon(tlink); in cifs_unlink()
1732 server = tcon->ses->server; in cifs_unlink()
1737 if (tcon->nodelete) { in cifs_unlink()
1750 cifs_close_deferred_file_under_dentry(tcon, full_path); in cifs_unlink()
1752 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_unlink()
1753 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_unlink()
1754 rc = CIFSPOSIXDelFile(xid, tcon, full_path, in cifs_unlink()
1769 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb); in cifs_unlink()
1833 struct cifs_tcon *tcon, const unsigned int xid) argument
1838 if (tcon->posix_extensions)
1841 else if (tcon->unix_ext)
1875 if (tcon->unix_ext) {
1893 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1900 struct TCP_Server_Info *server = tcon->ses->server;
1904 tcon, xid);
1924 struct cifs_tcon *tcon, const unsigned int xid) argument
1939 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1979 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1992 struct cifs_tcon *tcon; local
2006 tcon = tlink_tcon(tlink);
2017 server = tcon->ses->server;
2019 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
2020 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
2027 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
2028 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
2030 tcon, xid);
2042 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2050 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2070 struct cifs_tcon *tcon; local
2097 tcon = tlink_tcon(tlink);
2098 server = tcon->ses->server;
2106 if (tcon->nodelete) {
2112 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2149 struct cifs_tcon *tcon; local
2161 tcon = tlink_tcon(tlink);
2162 server = tcon->ses->server;
2168 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
2188 .tcon = tcon,
2200 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2203 CIFSSMBClose(xid, tcon, fid.netfid);
2222 struct cifs_tcon *tcon; local
2241 tcon = tlink_tcon(tlink);
2259 cifs_close_deferred_file_under_dentry(tcon, from_name);
2261 cifs_close_deferred_file_under_dentry(tcon, to_name);
2268 cifs_close_all_deferred_files(tcon);
2284 if (rc == -EEXIST && tcon->unix_ext) {
2298 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2305 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2358 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2370 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2577 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2637 !tcon->unix_ext) {
2651 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2652 struct TCP_Server_Info *server = tcon->ses->server;
2677 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2725 struct cifs_tcon *tcon = NULL; local
2739 tcon = tlink_tcon(open_file->tlink);
2740 server = tcon->ses->server;
2742 rc = server->ops->set_file_size(xid, tcon, open_file,
2754 if (tcon == NULL) {
2758 tcon = tlink_tcon(tlink);
2759 server = tcon->ses->server;
2768 rc = server->ops->set_path_size(xid, tcon, full_path,
2964 struct cifs_tcon *tcon; local
3013 tcon = tlink_tcon(wfile->tlink);
3014 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);