Lines Matching full:tcon
360 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); local
372 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
395 struct cifs_tcon *tcon; local
405 tcon = tlink_tcon(tlink);
406 server = tcon->ses->server;
409 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
425 int tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
434 rc = server->ops->query_symlink(xid, tcon, cifs_sb, full_path,
483 struct cifs_tcon *tcon; local
509 tcon = tlink_tcon(tlink);
511 oparms.tcon = tcon;
520 if (tcon->ses->server->oplocks)
524 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
534 io_parms.tcon = tcon;
538 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
580 tcon->ses->server->ops->close(xid, tcon, &fid);
600 struct cifs_tcon *tcon; local
605 tcon = tlink_tcon(tlink);
607 if (tcon->ses->server->ops->query_all_EAs == NULL) {
612 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
639 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
656 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
657 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
696 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
712 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
713 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
747 if (!tcon->unix_ext)
761 if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
787 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); local
788 struct TCP_Server_Info *server = tcon->ses->server;
796 rc = server->ops->query_file_info(xid, tcon, cfile, &data);
858 * @tcon: information about the server share we have mounted
867 struct cifs_tcon *tcon, argument
880 if (tcon->unix_ext)
882 else if ((tcon->ses->capabilities &
883 tcon->ses->server->vals->cap_nt_find) == 0)
894 rc = CIFSFindFirst(xid, tcon, full_path,
905 static void cifs_set_fattr_ino(int xid, struct cifs_tcon *tcon, struct super_block *sb, argument
910 struct TCP_Server_Info *server = tcon->ses->server;
922 * If we have an inode pass a NULL tcon to ensure we don't
925 rc = server->ops->get_srv_inum(xid, *inode ? NULL : tcon, cifs_sb, full_path,
950 fattr->cf_uniqueid = simple_hashstr(tcon->tree_name);
964 struct cifs_tcon *tcon; local
980 tcon = tlink_tcon(tlink);
981 server = tcon->ses->server;
992 rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path, &tmp_data,
995 if (rc == -ENOENT && is_tcon_dfs(tcon))
996 rc = cifs_dfs_query_info_nonascii_quirk(xid, tcon,
1018 tmprc = server->ops->query_reparse_tag(xid, tcon, cifs_sb, full_path,
1023 tmprc = server->ops->query_symlink(xid, tcon, cifs_sb, full_path,
1054 rc = cifs_backup_query_path_info(xid, tcon, sb,
1086 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, &fattr);
1131 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1171 struct cifs_tcon *tcon; local
1184 tcon = tlink_tcon(tlink);
1195 rc = smb311_posix_query_path_info(xid, tcon, cifs_sb, full_path, &data, &adjust_tz,
1231 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1374 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
1393 if (tcon->unix_ext) {
1399 tcon->unix_ext = false;
1403 if (tcon->posix_extensions)
1414 if (rc && tcon->pipe) {
1504 struct cifs_tcon *tcon; local
1511 tcon = tlink_tcon(tlink);
1517 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1522 oparms.tcon = tcon;
1552 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1563 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1573 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1593 CIFSSMBClose(xid, tcon, fid.netfid);
1605 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1610 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1647 struct cifs_tcon *tcon; local
1660 tcon = tlink_tcon(tlink);
1661 server = tcon->ses->server;
1666 if (tcon->nodelete) {
1679 cifs_close_deferred_file_under_dentry(tcon, full_path);
1681 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1682 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1683 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1698 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1762 struct cifs_tcon *tcon, const unsigned int xid) argument
1767 if (tcon->posix_extensions)
1770 else if (tcon->unix_ext)
1804 if (tcon->unix_ext) {
1822 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1829 struct TCP_Server_Info *server = tcon->ses->server;
1833 tcon, xid);
1853 struct cifs_tcon *tcon, const unsigned int xid) argument
1868 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1908 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1921 struct cifs_tcon *tcon; local
1935 tcon = tlink_tcon(tlink);
1946 server = tcon->ses->server;
1948 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
1949 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
1956 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1957 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1959 tcon, xid);
1971 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
1979 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
1999 struct cifs_tcon *tcon; local
2026 tcon = tlink_tcon(tlink);
2027 server = tcon->ses->server;
2035 if (tcon->nodelete) {
2041 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2078 struct cifs_tcon *tcon; local
2090 tcon = tlink_tcon(tlink);
2091 server = tcon->ses->server;
2097 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
2116 oparms.tcon = tcon;
2128 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2131 CIFSSMBClose(xid, tcon, fid.netfid);
2150 struct cifs_tcon *tcon; local
2169 tcon = tlink_tcon(tlink);
2187 cifs_close_deferred_file_under_dentry(tcon, from_name);
2189 cifs_close_deferred_file_under_dentry(tcon, to_name);
2196 cifs_close_all_deferred_files(tcon);
2212 if (rc == -EEXIST && tcon->unix_ext) {
2226 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2233 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2286 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2298 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2505 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2565 !tcon->unix_ext) {
2579 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2580 struct TCP_Server_Info *server = tcon->ses->server;
2605 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2653 struct cifs_tcon *tcon = NULL; local
2667 tcon = tlink_tcon(open_file->tlink);
2668 server = tcon->ses->server;
2670 rc = server->ops->set_file_size(xid, tcon, open_file,
2682 if (tcon == NULL) {
2686 tcon = tlink_tcon(tlink);
2687 server = tcon->ses->server;
2696 rc = server->ops->set_path_size(xid, tcon, full_path,
2892 struct cifs_tcon *tcon; local
2941 tcon = tlink_tcon(wfile->tlink);
2942 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);