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()
650 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, in cifs_sfu_type()
696 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_sfu_type()
716 struct cifs_tcon *tcon; in cifs_sfu_mode() local
721 tcon = tlink_tcon(tlink); in cifs_sfu_mode()
723 if (tcon->ses->server->ops->query_all_EAs == NULL) { in cifs_sfu_mode()
728 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path, in cifs_sfu_mode()
838 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in smb311_posix_info_to_fattr() local
855 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; in smb311_posix_info_to_fattr()
856 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; in smb311_posix_info_to_fattr()
896 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_open_info_to_fattr() local
912 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; in cifs_open_info_to_fattr()
913 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; in cifs_open_info_to_fattr()
935 if (!tcon->unix_ext) in cifs_open_info_to_fattr()
945 if ((fattr->cf_nlink < 1) && !tcon->unix_ext && in cifs_open_info_to_fattr()
975 struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); in cifs_get_file_info() local
976 struct TCP_Server_Info *server = tcon->ses->server; in cifs_get_file_info()
987 rc = server->ops->query_file_info(xid, tcon, cfile, &data); in cifs_get_file_info()
1057 * @tcon: information about the server share we have mounted
1066 struct cifs_tcon *tcon, in cifs_backup_query_path_info() argument
1079 if (tcon->unix_ext) in cifs_backup_query_path_info()
1081 else if ((tcon->ses->capabilities & in cifs_backup_query_path_info()
1082 tcon->ses->server->vals->cap_nt_find) == 0) in cifs_backup_query_path_info()
1093 rc = CIFSFindFirst(xid, tcon, full_path, in cifs_backup_query_path_info()
1104 static void cifs_set_fattr_ino(int xid, struct cifs_tcon *tcon, struct super_block *sb, in cifs_set_fattr_ino() argument
1109 struct TCP_Server_Info *server = tcon->ses->server; in cifs_set_fattr_ino()
1121 * If we have an inode pass a NULL tcon to ensure we don't in cifs_set_fattr_ino()
1124 rc = server->ops->get_srv_inum(xid, *inode ? NULL : tcon, cifs_sb, full_path, in cifs_set_fattr_ino()
1149 fattr->cf_uniqueid = simple_hashstr(tcon->tree_name); in cifs_set_fattr_ino()
1162 struct cifs_tcon *tcon, in reparse_info_to_fattr() argument
1166 struct TCP_Server_Info *server = tcon->ses->server; in reparse_info_to_fattr()
1174 rc = server->ops->query_reparse_point(xid, tcon, cifs_sb, in reparse_info_to_fattr()
1188 rc = server->ops->query_symlink(xid, tcon, in reparse_info_to_fattr()
1250 if (tcon->posix_extensions) in reparse_info_to_fattr()
1268 struct cifs_tcon *tcon; in cifs_get_fattr() local
1279 tcon = tlink_tcon(tlink); in cifs_get_fattr()
1280 server = tcon->ses->server; in cifs_get_fattr()
1287 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in cifs_get_fattr()
1304 rc = reparse_info_to_fattr(data, sb, xid, tcon, in cifs_get_fattr()
1334 rc = cifs_backup_query_path_info(xid, tcon, sb, in cifs_get_fattr()
1366 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, fattr); in cifs_get_fattr()
1406 else if (!(tcon->posix_extensions)) in cifs_get_fattr()
1414 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_fattr()
1458 struct cifs_tcon *tcon; in smb311_posix_get_fattr() local
1466 tcon = tlink_tcon(tlink); in smb311_posix_get_fattr()
1467 server = tcon->ses->server; in smb311_posix_get_fattr()
1473 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in smb311_posix_get_fattr()
1485 rc = reparse_info_to_fattr(data, sb, xid, tcon, in smb311_posix_get_fattr()
1514 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in smb311_posix_get_fattr()
1657 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_root_iget() local
1679 if (tcon->unix_ext) { in cifs_root_iget()
1685 tcon->unix_ext = false; in cifs_root_iget()
1689 if (tcon->posix_extensions) in cifs_root_iget()
1711 if (rc && tcon->pipe) { in cifs_root_iget()
1802 struct cifs_tcon *tcon; in cifs_rename_pending_delete() local
1809 tcon = tlink_tcon(tlink); in cifs_rename_pending_delete()
1815 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) { in cifs_rename_pending_delete()
1821 .tcon = tcon, in cifs_rename_pending_delete()
1851 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1862 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL, in cifs_rename_pending_delete()
1872 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid, in cifs_rename_pending_delete()
1892 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_rename_pending_delete()
1904 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name, in cifs_rename_pending_delete()
1909 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1946 struct cifs_tcon *tcon; in cifs_unlink() local
1959 tcon = tlink_tcon(tlink); in cifs_unlink()
1960 server = tcon->ses->server; in cifs_unlink()
1965 if (tcon->nodelete) { in cifs_unlink()
1979 cifs_close_deferred_file_under_dentry(tcon, full_path); in cifs_unlink()
1981 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_unlink()
1982 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_unlink()
1983 rc = CIFSPOSIXDelFile(xid, tcon, full_path, in cifs_unlink()
1998 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb, dentry); in cifs_unlink()
2066 struct cifs_tcon *tcon, const unsigned int xid) argument
2071 if (tcon->posix_extensions) {
2075 } else if (tcon->unix_ext) {
2110 if (tcon->unix_ext) {
2128 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
2135 struct TCP_Server_Info *server = tcon->ses->server;
2139 tcon, xid);
2159 struct cifs_tcon *tcon, const unsigned int xid) argument
2174 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
2214 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
2227 struct cifs_tcon *tcon; local
2241 tcon = tlink_tcon(tlink);
2252 server = tcon->ses->server;
2254 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
2255 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
2262 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
2263 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
2265 tcon, xid);
2277 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2285 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2305 struct cifs_tcon *tcon; local
2332 tcon = tlink_tcon(tlink);
2333 server = tcon->ses->server;
2341 if (tcon->nodelete) {
2347 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2384 struct cifs_tcon *tcon; local
2396 tcon = tlink_tcon(tlink);
2397 server = tcon->ses->server;
2403 rc = server->ops->rename(xid, tcon, from_dentry,
2427 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU))
2431 .tcon = tcon,
2443 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2446 CIFSSMBClose(xid, tcon, fid.netfid);
2465 struct cifs_tcon *tcon; local
2484 tcon = tlink_tcon(tlink);
2502 cifs_close_deferred_file_under_dentry(tcon, from_name);
2505 cifs_close_deferred_file_under_dentry(tcon, to_name);
2513 cifs_close_all_deferred_files(tcon);
2529 if (rc == -EEXIST && tcon->unix_ext) {
2543 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2550 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2600 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2612 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2805 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2865 !tcon->unix_ext) {
2879 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2880 struct TCP_Server_Info *server = tcon->ses->server;
2905 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2953 struct cifs_tcon *tcon = NULL; local
2967 tcon = tlink_tcon(open_file->tlink);
2968 server = tcon->ses->server;
2970 rc = server->ops->set_file_size(xid, tcon, open_file,
2982 if (tcon == NULL) {
2986 tcon = tlink_tcon(tlink);
2987 server = tcon->ses->server;
2996 rc = server->ops->set_path_size(xid, tcon, full_path,
3193 struct cifs_tcon *tcon; local
3243 tcon = tlink_tcon(wfile->tlink);
3244 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);