Lines Matching full:tcon

354 	struct cifs_tcon *tcon = tlink_tcon(cfile->tlink);  local
357 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
380 struct cifs_tcon *tcon; local
389 tcon = tlink_tcon(tlink);
392 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
407 int tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
451 struct cifs_tcon *tcon; local
477 tcon = tlink_tcon(tlink);
479 oparms.tcon = tcon;
488 if (tcon->ses->server->oplocks)
492 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
502 io_parms.tcon = tcon;
506 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
548 tcon->ses->server->ops->close(xid, tcon, &fid);
568 struct cifs_tcon *tcon; local
573 tcon = tlink_tcon(tlink);
575 if (tcon->ses->server->ops->query_all_EAs == NULL) {
580 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
607 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
624 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
625 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
664 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
680 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj;
681 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj;
714 if (!tcon->unix_ext)
728 if ((fattr->cf_nlink < 1) && !tcon->unix_ext &&
749 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); local
750 struct TCP_Server_Info *server = tcon->ses->server;
756 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
816 struct cifs_tcon *tcon, argument
829 if (tcon->unix_ext)
831 else if ((tcon->ses->capabilities &
832 tcon->ses->server->vals->cap_nt_find) == 0)
843 rc = CIFSFindFirst(xid, tcon, full_path,
855 struct cifs_tcon *tcon, argument
863 struct TCP_Server_Info *server = tcon->ses->server;
875 * If we have an inode pass a NULL tcon to ensure we don't
879 *inode ? NULL : tcon,
906 fattr->cf_uniqueid = simple_hashstr(tcon->treeName);
924 struct cifs_tcon *tcon; local
941 tcon = tlink_tcon(tlink);
942 server = tcon->ses->server;
958 rc = server->ops->query_path_info(xid, tcon, cifs_sb,
977 rc = server->ops->query_reparse_tag(xid, tcon, cifs_sb,
1003 rc = cifs_backup_query_path_info(xid, tcon, sb,
1031 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, &fattr);
1075 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1122 struct cifs_tcon *tcon; local
1135 tcon = tlink_tcon(tlink);
1151 rc = smb311_posix_query_path_info(xid, tcon, cifs_sb,
1188 tmprc = check_mf_symlink(xid, tcon, cifs_sb, &fattr,
1339 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
1358 if (tcon->unix_ext) {
1364 tcon->unix_ext = false;
1368 if (tcon->posix_extensions)
1380 /* populate tcon->resource_id */
1381 tcon->resource_id = CIFS_I(inode)->uniqueid;
1384 if (rc && tcon->pipe) {
1473 struct cifs_tcon *tcon; local
1480 tcon = tlink_tcon(tlink);
1486 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) {
1491 oparms.tcon = tcon;
1521 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1532 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL,
1542 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid,
1562 CIFSSMBClose(xid, tcon, fid.netfid);
1574 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name,
1579 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid,
1614 struct cifs_tcon *tcon; local
1624 tcon = tlink_tcon(tlink);
1625 server = tcon->ses->server;
1629 if (tcon->nodelete) {
1642 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1643 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1644 rc = CIFSPOSIXDelFile(xid, tcon, full_path,
1658 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb);
1722 struct cifs_tcon *tcon, const unsigned int xid) argument
1727 if (tcon->posix_extensions)
1729 else if (tcon->unix_ext)
1751 if (tcon->unix_ext) {
1769 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
1773 struct TCP_Server_Info *server = tcon->ses->server;
1777 tcon, xid);
1796 struct cifs_tcon *tcon, const unsigned int xid) argument
1811 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
1851 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
1862 struct cifs_tcon *tcon; local
1873 tcon = tlink_tcon(tlink);
1883 server = tcon->ses->server;
1885 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
1886 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
1892 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
1893 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
1895 tcon, xid);
1906 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
1914 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
1934 struct cifs_tcon *tcon; local
1955 tcon = tlink_tcon(tlink);
1956 server = tcon->ses->server;
1964 if (tcon->nodelete) {
1970 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2007 struct cifs_tcon *tcon; local
2016 tcon = tlink_tcon(tlink);
2017 server = tcon->ses->server;
2023 rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
2041 oparms.tcon = tcon;
2053 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2056 CIFSSMBClose(xid, tcon, fid.netfid);
2074 struct cifs_tcon *tcon; local
2087 tcon = tlink_tcon(tlink);
2116 if (rc == -EEXIST && tcon->unix_ext) {
2130 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2137 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2372 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2429 !tcon->unix_ext) {
2443 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2444 struct TCP_Server_Info *server = tcon->ses->server;
2466 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2514 struct cifs_tcon *tcon = NULL; local
2528 tcon = tlink_tcon(open_file->tlink);
2529 server = tcon->ses->server;
2531 rc = server->ops->set_file_size(xid, tcon, open_file,
2543 if (tcon == NULL) {
2547 tcon = tlink_tcon(tlink);
2548 server = tcon->ses->server;
2557 rc = server->ops->set_path_size(xid, tcon, full_path,
2748 struct cifs_tcon *tcon; local
2799 tcon = tlink_tcon(wfile->tlink);
2800 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);