Lines Matching defs:tcon

386 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
398 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
423 struct cifs_tcon *tcon;
432 tcon = tlink_tcon(tlink);
433 server = tcon->ses->server;
436 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
455 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path);
462 rc = server->ops->query_symlink(xid, tcon,
511 struct cifs_tcon *tcon;
537 tcon = tlink_tcon(tlink);
540 .tcon = tcon,
549 if (tcon->ses->server->oplocks)
553 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
563 io_parms.tcon = tcon;
567 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
613 tcon->ses->server->ops->close(xid, tcon, &fid);
633 struct cifs_tcon *tcon;
638 tcon = tlink_tcon(tlink);
640 if (tcon->ses->server->ops->query_all_EAs == NULL) {
645 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
675 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
692 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
693 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
810 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
826 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
827 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
846 if (!tcon->unix_ext)
860 if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
889 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
890 struct TCP_Server_Info *server = tcon->ses->server;
896 rc = server->ops->query_file_info(xid, tcon, cfile, &data);
959 * @tcon: information about the server share we have mounted
968 struct cifs_tcon *tcon,
981 if (tcon->unix_ext)
983 else if ((tcon->ses->capabilities &
984 tcon->ses->server->vals->cap_nt_find) == 0)
995 rc = CIFSFindFirst(xid, tcon, full_path,
1006 static void cifs_set_fattr_ino(int xid, struct cifs_tcon *tcon, struct super_block *sb,
1011 struct TCP_Server_Info *server = tcon->ses->server;
1023 * If we have an inode pass a NULL tcon to ensure we don't
1026 rc = server->ops->get_srv_inum(xid, *inode ? NULL : tcon, cifs_sb, full_path,
1051 fattr->cf_uniqueid = simple_hashstr(tcon->tree_name);
1064 struct cifs_tcon *tcon,
1068 struct TCP_Server_Info *server = tcon->ses->server;
1076 rc = server->ops->query_reparse_point(xid, tcon, cifs_sb,
1087 rc = server->ops->query_symlink(xid, tcon,
1121 struct cifs_tcon *tcon;
1132 tcon = tlink_tcon(tlink);
1133 server = tcon->ses->server;
1140 rc = server->ops->query_path_info(xid, tcon, cifs_sb,
1157 rc = reparse_info_to_fattr(data, sb, xid, tcon,
1184 rc = cifs_backup_query_path_info(xid, tcon, sb,
1216 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, fattr);
1261 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path);
1303 struct cifs_tcon *tcon;
1312 tcon = tlink_tcon(tlink);
1318 rc = smb311_posix_query_path_info(xid, tcon, cifs_sb,
1353 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path);
1489 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
1511 if (tcon->unix_ext) {
1517 tcon->unix_ext = false;
1521 if (tcon->posix_extensions)
1540 if (rc && tcon->pipe) {
1631 struct cifs_tcon *tcon;
1638 tcon = tlink_tcon(tlink);
1644 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1650 .tcon = tcon,
1680 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1691 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1701 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1721 CIFSSMBClose(xid, tcon, fid.netfid);
1733 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1738 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1775 struct cifs_tcon *tcon;
1788 tcon = tlink_tcon(tlink);
1789 server = tcon->ses->server;
1794 if (tcon->nodelete) {
1807 cifs_close_deferred_file_under_dentry(tcon, full_path);
1809 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1810 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1811 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1826 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1890 struct cifs_tcon *tcon, const unsigned int xid)
1895 if (tcon->posix_extensions)
1898 else if (tcon->unix_ext)
1932 if (tcon->unix_ext) {
1950 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1957 struct TCP_Server_Info *server = tcon->ses->server;
1961 tcon, xid);
1981 struct cifs_tcon *tcon, const unsigned int xid)
1996 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
2036 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
2049 struct cifs_tcon *tcon;
2063 tcon = tlink_tcon(tlink);
2074 server = tcon->ses->server;
2076 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
2077 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
2084 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
2085 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
2087 tcon, xid);
2099 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2107 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2127 struct cifs_tcon *tcon;
2154 tcon = tlink_tcon(tlink);
2155 server = tcon->ses->server;
2163 if (tcon->nodelete) {
2169 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2206 struct cifs_tcon *tcon;
2218 tcon = tlink_tcon(tlink);
2219 server = tcon->ses->server;
2225 rc = server->ops->rename(xid, tcon, from_dentry,
2246 .tcon = tcon,
2258 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2261 CIFSSMBClose(xid, tcon, fid.netfid);
2280 struct cifs_tcon *tcon;
2299 tcon = tlink_tcon(tlink);
2317 cifs_close_deferred_file_under_dentry(tcon, from_name);
2319 cifs_close_deferred_file_under_dentry(tcon, to_name);
2326 cifs_close_all_deferred_files(tcon);
2342 if (rc == -EEXIST && tcon->unix_ext) {
2356 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2363 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2413 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2425 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2632 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2692 !tcon->unix_ext) {
2706 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2707 struct TCP_Server_Info *server = tcon->ses->server;
2732 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2780 struct cifs_tcon *tcon = NULL;
2794 tcon = tlink_tcon(open_file->tlink);
2795 server = tcon->ses->server;
2797 rc = server->ops->set_file_size(xid, tcon, open_file,
2809 if (tcon == NULL) {
2813 tcon = tlink_tcon(tlink);
2814 server = tcon->ses->server;
2823 rc = server->ops->set_path_size(xid, tcon, full_path,
3019 struct cifs_tcon *tcon;
3068 tcon = tlink_tcon(wfile->tlink);
3069 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);