Lines Matching refs: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 strncpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
85 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry() local
86 bool prefix = tcon->Flags & SMB_SHARE_IS_IN_DFS; in build_path_from_dentry()
102 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb); in build_path_from_dentry_optional_prefix() local
107 dfsplen = strnlen(tcon->treeName, MAX_TREE_SIZE + 1); in build_path_from_dentry_optional_prefix()
184 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
202 check_name(struct dentry *direntry, struct cifs_tcon *tcon) in check_name() argument
207 if (unlikely(tcon->fsAttrInfo.MaxPathNameComponentLength && in check_name()
209 le32_to_cpu(tcon->fsAttrInfo.MaxPathNameComponentLength))) in check_name()
235 struct cifs_tcon *tcon = tlink_tcon(tlink); in cifs_do_create() local
240 struct TCP_Server_Info *server = tcon->ses->server; in cifs_do_create()
244 if (tcon->ses->server->oplocks) in cifs_do_create()
253 if (tcon->unix_ext && cap_unix(tcon->ses) && !tcon->broken_posix_open && in cifs_do_create()
255 le64_to_cpu(tcon->fsUnixInfo.Capability))) { in cifs_do_create()
266 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
280 CIFSSMBClose(xid, tcon, fid->netfid); in cifs_do_create()
299 tcon->broken_posix_open = true; in cifs_do_create()
358 if (!tcon->unix_ext && (mode & S_IWUGO) == 0) in cifs_do_create()
364 oparms.tcon = tcon; in cifs_do_create()
383 if ((tcon->unix_ext) && (*oplock & CIFS_CREATE_ACTION)) { in cifs_do_create()
402 CIFSSMBUnixSetFileInfo(xid, tcon, &args, fid->netfid, in cifs_do_create()
416 if (tcon->unix_ext) in cifs_do_create()
460 server->ops->close(xid, tcon, fid); in cifs_do_create()
474 struct cifs_tcon *tcon; in cifs_atomic_open() local
520 tcon = tlink_tcon(tlink); in cifs_atomic_open()
522 rc = check_name(direntry, tcon); in cifs_atomic_open()
526 server = tcon->ses->server; in cifs_atomic_open()
547 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
563 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
589 struct cifs_tcon *tcon; in cifs_create() local
602 tcon = tlink_tcon(tlink); in cifs_create()
603 server = tcon->ses->server; in cifs_create()
611 server->ops->close(xid, tcon, &fid); in cifs_create()
627 struct cifs_tcon *tcon; in cifs_mknod() local
647 tcon = tlink_tcon(tlink); in cifs_mknod()
657 if (tcon->unix_ext) { in cifs_mknod()
672 rc = CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args, in cifs_mknod()
704 oparms.tcon = tcon; in cifs_mknod()
713 if (tcon->ses->server->oplocks) in cifs_mknod()
717 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); in cifs_mknod()
728 io_parms.tcon = tcon; in cifs_mknod()
737 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod()
743 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, in cifs_mknod()
746 tcon->ses->server->ops->close(xid, tcon, &fid); in cifs_mknod()