Lines Matching full:tcon
50 struct cifs_tcon *tcon, int add_treename) in cifs_build_path_to_root() argument
63 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in cifs_build_path_to_root()
72 memcpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
84 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local
85 bool prefix = tcon->Flags & SMB_SHARE_IS_IN_DFS; in build_path_from_dentry()
101 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix() local
106 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry_optional_prefix()
183 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
201 check_name(struct dentry *direntry, struct cifs_tcon *tcon) in check_name() argument
206 if (unlikely(tcon->fsAttrInfo.MaxPathNameComponentLength && in check_name()
208 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) in check_name()
234 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_do_create() local
239 struct TCP_Server_Info *server = tcon->ses->server; in cifs_do_create()
243 if (tcon->ses->server->oplocks) in cifs_do_create()
250 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open && in cifs_do_create()
252 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_do_create()
263 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
277 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
296 tcon->broken_posix_open = true; in cifs_do_create()
355 if (!tcon->unix_ext && (mode & S_IWUGO) == 0) in cifs_do_create()
358 oparms.tcon = tcon; in cifs_do_create()
377 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) { in cifs_do_create()
396 CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid->netfid, in cifs_do_create()
403 /* CIFSSMBWinSetPerms(xid,tcon,path,mode,-1,-1,nls);*/ in cifs_do_create()
410 if (tcon->unix_ext) in cifs_do_create()
455 server->ops->close(xid, tcon, fid); in cifs_do_create()
468 struct cifs_tcon *tcon; in cifs_atomic_open() local
514 tcon = tlink_tcon(tlink); in cifs_atomic_open()
516 rc = check_name(direntry, tcon); in cifs_atomic_open()
520 server = tcon->ses->server; in cifs_atomic_open()
541 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
557 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
583 struct cifs_tcon *tcon; in cifs_create() local
596 tcon = tlink_tcon(tlink); in cifs_create()
597 server = tcon->ses->server; in cifs_create()
605 server->ops->close(xid, tcon, &fid); in cifs_create()
620 struct cifs_tcon *tcon; in cifs_mknod() local
631 tcon = tlink_tcon(tlink); in cifs_mknod()
641 rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon, in cifs_mknod()