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()
1249 if (tcon->posix_extensions) in reparse_info_to_fattr()
1267 struct cifs_tcon *tcon; in cifs_get_fattr() local
1278 tcon = tlink_tcon(tlink); in cifs_get_fattr()
1279 server = tcon->ses->server; in cifs_get_fattr()
1286 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in cifs_get_fattr()
1303 rc = reparse_info_to_fattr(data, sb, xid, tcon, in cifs_get_fattr()
1333 rc = cifs_backup_query_path_info(xid, tcon, sb, in cifs_get_fattr()
1365 cifs_set_fattr_ino(xid, tcon, sb, inode, full_path, data, fattr); in cifs_get_fattr()
1405 else if (!(tcon->posix_extensions)) in cifs_get_fattr()
1413 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in cifs_get_fattr()
1457 struct cifs_tcon *tcon; in smb311_posix_get_fattr() local
1465 tcon = tlink_tcon(tlink); in smb311_posix_get_fattr()
1466 server = tcon->ses->server; in smb311_posix_get_fattr()
1472 rc = server->ops->query_path_info(xid, tcon, cifs_sb, in smb311_posix_get_fattr()
1484 rc = reparse_info_to_fattr(data, sb, xid, tcon, in smb311_posix_get_fattr()
1513 tmprc = check_mf_symlink(xid, tcon, cifs_sb, fattr, full_path); in smb311_posix_get_fattr()
1656 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in cifs_root_iget() local
1678 if (tcon->unix_ext) { in cifs_root_iget()
1684 tcon->unix_ext = false; in cifs_root_iget()
1688 if (tcon->posix_extensions) in cifs_root_iget()
1710 if (rc && tcon->pipe) { in cifs_root_iget()
1801 struct cifs_tcon *tcon; in cifs_rename_pending_delete() local
1808 tcon = tlink_tcon(tlink); in cifs_rename_pending_delete()
1814 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU)) { in cifs_rename_pending_delete()
1820 .tcon = tcon, in cifs_rename_pending_delete()
1850 rc = CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1861 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, NULL, in cifs_rename_pending_delete()
1871 rc = CIFSSMBSetFileDisposition(xid, tcon, true, fid.netfid, in cifs_rename_pending_delete()
1891 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_rename_pending_delete()
1903 CIFSSMBRenameOpenFile(xid, tcon, fid.netfid, dentry->d_name.name, in cifs_rename_pending_delete()
1908 if (!CIFSSMBSetFileInfo(xid, tcon, info_buf, fid.netfid, in cifs_rename_pending_delete()
1945 struct cifs_tcon *tcon; in cifs_unlink() local
1967 tcon = tlink_tcon(tlink); in cifs_unlink()
1968 server = tcon->ses->server; in cifs_unlink()
1973 if (tcon->nodelete) { in cifs_unlink()
1987 cifs_close_deferred_file_under_dentry(tcon, full_path); in cifs_unlink()
1989 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP & in cifs_unlink()
1990 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_unlink()
1991 rc = CIFSPOSIXDelFile(xid, tcon, full_path, in cifs_unlink()
2006 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb, dentry); in cifs_unlink()
2077 struct cifs_tcon *tcon, const unsigned int xid) argument
2082 if (tcon->posix_extensions) {
2086 } else if (tcon->unix_ext) {
2121 if (tcon->unix_ext) {
2139 CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args,
2146 struct TCP_Server_Info *server = tcon->ses->server;
2150 tcon, xid);
2170 struct cifs_tcon *tcon, const unsigned int xid) argument
2185 rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode,
2225 rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon,
2238 struct cifs_tcon *tcon; local
2252 tcon = tlink_tcon(tlink);
2263 server = tcon->ses->server;
2265 if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) {
2266 rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path,
2273 if (cap_unix(tcon->ses) && (CIFS_UNIX_POSIX_PATH_OPS_CAP &
2274 le64_to_cpu(tcon->fsUnixInfo.Capability))) {
2276 tcon, xid);
2288 rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb);
2296 rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon,
2316 struct cifs_tcon *tcon; local
2343 tcon = tlink_tcon(tlink);
2344 server = tcon->ses->server;
2352 if (tcon->nodelete) {
2358 rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);
2395 struct cifs_tcon *tcon; local
2407 tcon = tlink_tcon(tlink);
2408 server = tcon->ses->server;
2414 rc = server->ops->rename(xid, tcon, from_dentry,
2438 if (!(tcon->ses->capabilities & CAP_INFOLEVEL_PASSTHRU))
2442 .tcon = tcon,
2454 rc = CIFSSMBRenameOpenFile(xid, tcon, fid.netfid,
2457 CIFSSMBClose(xid, tcon, fid.netfid);
2476 struct cifs_tcon *tcon; local
2507 tcon = tlink_tcon(tlink);
2525 cifs_close_deferred_file_under_dentry(tcon, from_name);
2528 cifs_close_deferred_file_under_dentry(tcon, to_name);
2536 cifs_close_all_deferred_files(tcon);
2554 if (rc == -EEXIST && tcon->unix_ext) {
2568 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, from_name,
2575 tmprc = CIFSSMBUnixQPathInfo(xid, tcon, to_name,
2629 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2641 if (!open_cached_dir_by_dentry(tcon, dentry->d_parent, &cfid)) {
2834 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2894 !tcon->unix_ext) {
2908 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); local
2909 struct TCP_Server_Info *server = tcon->ses->server;
2934 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
2965 struct cifs_tcon *tcon = NULL; local
2979 tcon = tlink_tcon(open_file->tlink);
2980 server = tcon->ses->server;
2982 rc = server->ops->set_file_size(xid, tcon, open_file,
2994 if (tcon == NULL) {
2998 tcon = tlink_tcon(tlink);
2999 server = tcon->ses->server;
3008 rc = server->ops->set_path_size(xid, tcon, full_path,
3203 struct cifs_tcon *tcon; local
3253 tcon = tlink_tcon(wfile->tlink);
3254 rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid);