Lines Matching full:tcon
404 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info_unix() local
416 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); in cifs_get_file_info_unix()
440 struct cifs_tcon *tcon; in cifs_get_unix_fattr() local
449 tcon = tlink_tcon(tlink); in cifs_get_unix_fattr()
450 server = tcon->ses->server; in cifs_get_unix_fattr()
453 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, in cifs_get_unix_fattr()
472 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_unix_fattr()
479 rc = server->ops->query_symlink(xid, tcon, in cifs_get_unix_fattr()
528 struct cifs_tcon *tcon; in cifs_sfu_type() local
557 tcon = tlink_tcon(tlink); in cifs_sfu_type()
560 .tcon = tcon, in cifs_sfu_type()
569 if (tcon->ses->server->oplocks) in cifs_sfu_type()
573 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); in cifs_sfu_type()
583 io_parms.tcon = tcon; in cifs_sfu_type()
587 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, in cifs_sfu_type()
628 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, in cifs_sfu_type()
674 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_sfu_type()
694 struct cifs_tcon *tcon; in cifs_sfu_mode() local
699 tcon = tlink_tcon(tlink); in cifs_sfu_mode()
701 if (tcon->ses->server->ops->query_all_EAs == NULL) { in cifs_sfu_mode()
706 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path, in cifs_sfu_mode()
734 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in smb311_posix_info_to_fattr() local
751 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; in smb311_posix_info_to_fattr()
752 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; in smb311_posix_info_to_fattr()
798 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_open_info_to_fattr() local
814 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; in cifs_open_info_to_fattr()
815 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; in cifs_open_info_to_fattr()
837 if (!tcon->unix_ext) in cifs_open_info_to_fattr()
847 if ((fattr->cf_nlink < 1) && !tcon->unix_ext && in cifs_open_info_to_fattr()
877 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info() local
878 struct TCP_Server_Info *server = tcon->ses->server; in cifs_get_file_info()
889 rc = server->ops->query_file_info(xid, tcon, cfile, &data); in cifs_get_file_info()
959 * @tcon: information about the server share we have mounted
968 struct cifs_tcon *tcon, in cifs_backup_query_path_info() argument
981 if (tcon->unix_ext) in cifs_backup_query_path_info()
983 else if ((tcon->ses->capabilities & in cifs_backup_query_path_info()
984 tcon->ses->server->vals->cap_nt_find) == 0) in cifs_backup_query_path_info()
995 rc = CIFSFindFirst(xid, tcon, full_path, in cifs_backup_query_path_info()
1006 static void cifs_set_fattr_ino(int xid, struct cifs_tcon *tcon, struct super_block *sb, in cifs_set_fattr_ino() argument
1011 struct TCP_Server_Info *server = tcon->ses->server; in cifs_set_fattr_ino()
1023 * If we have an inode pass a NULL tcon to ensure we don't in cifs_set_fattr_ino()
1026 rc = server->ops->get_srv_inum(xid, *inode ? NULL : tcon, cifs_sb, full_path, in cifs_set_fattr_ino()
1051 fattr->cf_uniqueid = simple_hashstr(tcon->tree_name); in cifs_set_fattr_ino()
1064 struct cifs_tcon *tcon, in reparse_info_to_fattr() argument
1068 struct TCP_Server_Info *server = tcon->ses->server; in reparse_info_to_fattr()
1076 rc = server->ops->query_reparse_point(xid, tcon, cifs_sb, in reparse_info_to_fattr()
1090 rc = server->ops->query_symlink(xid, tcon, in reparse_info_to_fattr()
1123 if (tcon->posix_extensions) in reparse_info_to_fattr()
1141 struct cifs_tcon *tcon; in cifs_get_fattr() local
1152 tcon = tlink_tcon(tlink); in cifs_get_fattr()
1153 server = tcon->ses->server; in cifs_get_fattr()
1160 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in cifs_get_fattr()
1177 rc = reparse_info_to_fattr(data, sb, xid, tcon, in cifs_get_fattr()
1207 rc = cifs_backup_query_path_info(xid, tcon, sb, in cifs_get_fattr()
1239 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, fattr); in cifs_get_fattr()
1279 else if (!(tcon->posix_extensions)) in cifs_get_fattr()
1287 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_fattr()
1331 struct cifs_tcon *tcon; in smb311_posix_get_fattr() local
1339 tcon = tlink_tcon(tlink); in smb311_posix_get_fattr()
1340 server = tcon->ses->server; in smb311_posix_get_fattr()
1346 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in smb311_posix_get_fattr()
1358 rc = reparse_info_to_fattr(data, sb, xid, tcon, in smb311_posix_get_fattr()
1387 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in smb311_posix_get_fattr()
1530 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_root_iget() local
1552 if (tcon->unix_ext) { in cifs_root_iget()
1558 tcon->unix_ext = false; in cifs_root_iget()
1562 if (tcon->posix_extensions) in cifs_root_iget()
1584 if (rc && tcon->pipe) { in cifs_root_iget()
1675 struct cifs_tcon *tcon; in cifs_rename_pending_delete() local
1682 tcon = tlink_tcon(tlink); in cifs_rename_pending_delete()
1688 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) { in cifs_rename_pending_delete()
1694 .tcon = tcon, in cifs_rename_pending_delete()
1724 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1735 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL, in cifs_rename_pending_delete()
1745 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid, in cifs_rename_pending_delete()
1765 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_rename_pending_delete()
1777 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name, in cifs_rename_pending_delete()
1782 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1819 struct cifs_tcon *tcon; in cifs_unlink() local
1832 tcon = tlink_tcon(tlink); in cifs_unlink()
1833 server = tcon->ses->server; in cifs_unlink()
1838 if (tcon->nodelete) { in cifs_unlink()
1851 cifs_close_deferred_file_under_dentry(tcon, full_path); in cifs_unlink()
1853 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_unlink()
1854 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_unlink()
1855 rc = CIFSPOSIXDelFile(xid, tcon, full_path, in cifs_unlink()
1870 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb, dentry); in cifs_unlink()
1938 struct cifs_tcon *tcon, const unsigned int xid) argument
1943 if (tcon->posix_extensions) {
1947 } else if (tcon->unix_ext) {
1982 if (tcon->unix_ext) {
2000 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
2007 struct TCP_Server_Info *server = tcon->ses->server;
2011 tcon, xid);
2031 struct cifs_tcon *tcon, const unsigned int xid) argument
2046 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
2086 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
2099 struct cifs_tcon *tcon; local
2113 tcon = tlink_tcon(tlink);
2124 server = tcon->ses->server;
2126 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
2127 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
2134 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
2135 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
2137 tcon, xid);
2149 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2157 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2177 struct cifs_tcon *tcon; local
2204 tcon = tlink_tcon(tlink);
2205 server = tcon->ses->server;
2213 if (tcon->nodelete) {
2219 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2256 struct cifs_tcon *tcon; local
2268 tcon = tlink_tcon(tlink);
2269 server = tcon->ses->server;
2275 rc = server->ops->rename(xid, tcon, from_dentry,
2296 .tcon = tcon,
2308 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2311 CIFSSMBClose(xid, tcon, fid.netfid);
2330 struct cifs_tcon *tcon; local
2349 tcon = tlink_tcon(tlink);
2367 cifs_close_deferred_file_under_dentry(tcon, from_name);
2369 cifs_close_deferred_file_under_dentry(tcon, to_name);
2376 cifs_close_all_deferred_files(tcon);
2392 if (rc == -EEXIST && tcon->unix_ext) {
2406 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2413 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2463 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2475 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2671 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2731 !tcon->unix_ext) {
2745 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2746 struct TCP_Server_Info *server = tcon->ses->server;
2771 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2819 struct cifs_tcon *tcon = NULL; local
2833 tcon = tlink_tcon(open_file->tlink);
2834 server = tcon->ses->server;
2836 rc = server->ops->set_file_size(xid, tcon, open_file,
2848 if (tcon == NULL) {
2852 tcon = tlink_tcon(tlink);
2853 server = tcon->ses->server;
2862 rc = server->ops->set_path_size(xid, tcon, full_path,
3059 struct cifs_tcon *tcon; local
3108 tcon = tlink_tcon(wfile->tlink);
3109 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);