Lines Matching defs:tcon
354 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
357 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
377 struct cifs_tcon *tcon;
386 tcon = tlink_tcon(tlink);
389 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
404 int tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
448 struct cifs_tcon *tcon;
474 tcon = tlink_tcon(tlink);
476 oparms.tcon = tcon;
485 if (tcon->ses->server->oplocks)
489 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
499 io_parms.tcon = tcon;
503 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
545 tcon->ses->server->ops->close(xid, tcon, &fid);
565 struct cifs_tcon *tcon;
570 tcon = tlink_tcon(tlink);
572 if (tcon->ses->server->ops->query_all_EAs == NULL) {
577 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
604 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
621 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
622 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
661 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
677 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
678 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
711 if (!tcon->unix_ext)
725 if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
746 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);
747 struct TCP_Server_Info *server = tcon->ses->server;
753 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
813 struct cifs_tcon *tcon,
826 if (tcon->unix_ext)
828 else if ((tcon->ses->capabilities &
829 tcon->ses->server->vals->cap_nt_find) == 0)
840 rc = CIFSFindFirst(xid, tcon, full_path,
852 struct cifs_tcon *tcon,
860 struct TCP_Server_Info *server = tcon->ses->server;
872 * If we have an inode pass a NULL tcon to ensure we don't
876 *inode ? NULL : tcon,
903 fattr->cf_uniqueid = simple_hashstr(tcon->treeName);
921 struct cifs_tcon *tcon;
938 tcon = tlink_tcon(tlink);
939 server = tcon->ses->server;
955 rc = server->ops->query_path_info(xid, tcon, cifs_sb,
974 rc = server->ops->query_reparse_tag(xid, tcon, cifs_sb,
1000 rc = cifs_backup_query_path_info(xid, tcon, sb,
1028 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, &fattr);
1072 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1119 struct cifs_tcon *tcon;
1132 tcon = tlink_tcon(tlink);
1148 rc = smb311_posix_query_path_info(xid, tcon, cifs_sb,
1185 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1336 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
1355 if (tcon->unix_ext) {
1361 tcon->unix_ext = false;
1365 if (tcon->posix_extensions)
1377 /* populate tcon->resource_id */
1378 tcon->resource_id = CIFS_I(inode)->uniqueid;
1381 if (rc && tcon->pipe) {
1470 struct cifs_tcon *tcon;
1477 tcon = tlink_tcon(tlink);
1483 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1488 oparms.tcon = tcon;
1518 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1529 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1539 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1559 CIFSSMBClose(xid, tcon, fid.netfid);
1571 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1576 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1611 struct cifs_tcon *tcon;
1621 tcon = tlink_tcon(tlink);
1622 server = tcon->ses->server;
1626 if (tcon->nodelete) {
1639 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1640 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1641 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1655 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1719 struct cifs_tcon *tcon, const unsigned int xid)
1724 if (tcon->posix_extensions)
1726 else if (tcon->unix_ext)
1748 if (tcon->unix_ext) {
1766 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1770 struct TCP_Server_Info *server = tcon->ses->server;
1774 tcon, xid);
1793 struct cifs_tcon *tcon, const unsigned int xid)
1808 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1848 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1859 struct cifs_tcon *tcon;
1870 tcon = tlink_tcon(tlink);
1880 server = tcon->ses->server;
1882 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
1883 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
1889 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1890 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1892 tcon, xid);
1903 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
1911 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
1931 struct cifs_tcon *tcon;
1952 tcon = tlink_tcon(tlink);
1953 server = tcon->ses->server;
1961 if (tcon->nodelete) {
1967 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2004 struct cifs_tcon *tcon;
2013 tcon = tlink_tcon(tlink);
2014 server = tcon->ses->server;
2020 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
2038 oparms.tcon = tcon;
2050 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2053 CIFSSMBClose(xid, tcon, fid.netfid);
2071 struct cifs_tcon *tcon;
2084 tcon = tlink_tcon(tlink);
2113 if (rc == -EEXIST && tcon->unix_ext) {
2127 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2134 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2369 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2426 !tcon->unix_ext) {
2440 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
2441 struct TCP_Server_Info *server = tcon->ses->server;
2463 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2511 struct cifs_tcon *tcon = NULL;
2525 tcon = tlink_tcon(open_file->tlink);
2526 server = tcon->ses->server;
2528 rc = server->ops->set_file_size(xid, tcon, open_file,
2540 if (tcon == NULL) {
2544 tcon = tlink_tcon(tlink);
2545 server = tcon->ses->server;
2554 rc = server->ops->set_path_size(xid, tcon, full_path,
2745 struct cifs_tcon *tcon;
2796 tcon = tlink_tcon(wfile->tlink);
2797 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);