Lines Matching refs:full_path

22 int dfs_parse_target_referral(const char *full_path, const struct dfs_info3_param *ref,  in dfs_parse_target_referral()  argument
29 if (!full_path || !*full_path || !ref || !ctx) in dfs_parse_target_referral()
35 if (strlen(full_path) - ref->path_consumed) { in dfs_parse_target_referral()
36 prepath = full_path + ref->path_consumed; in dfs_parse_target_referral()
64 char *full_path, *pos; in build_unc_path_to_root() local
71 full_path = kmalloc(unc_len + pplen + 1, GFP_KERNEL); in build_unc_path_to_root()
72 if (full_path == NULL) in build_unc_path_to_root()
75 memcpy(full_path, ctx->UNC, unc_len); in build_unc_path_to_root()
76 pos = full_path + unc_len; in build_unc_path_to_root()
85 convert_delimiter(full_path, CIFS_DIR_SEP(cifs_sb)); in build_unc_path_to_root()
86 cifs_dbg(FYI, "%s: full_path=%s\n", __func__, full_path); in build_unc_path_to_root()
87 return full_path; in build_unc_path_to_root()
90 static int get_session(struct cifs_mount_ctx *mnt_ctx, const char *full_path) in get_session() argument
95 ctx->leaf_fullpath = (char *)full_path; in get_session()
119 static int get_dfs_conn(struct cifs_mount_ctx *mnt_ctx, const char *ref_path, const char *full_path, in get_dfs_conn() argument
130 rc = dfs_parse_target_referral(full_path + 1, &ref, ctx); in get_dfs_conn()
165 char *ref_path = NULL, *full_path = NULL; in __dfs_mount_share() local
176 full_path = build_unc_path_to_root(ctx, cifs_sb, true); in __dfs_mount_share()
177 if (IS_ERR(full_path)) { in __dfs_mount_share()
178 rc = PTR_ERR(full_path); in __dfs_mount_share()
179 full_path = NULL; in __dfs_mount_share()
183 origin_fullpath = kstrdup(full_path, GFP_KERNEL); in __dfs_mount_share()
206 rc = get_dfs_conn(mnt_ctx, ref_path, full_path, tit); in __dfs_mount_share()
215 kfree(full_path); in __dfs_mount_share()
216 ref_path = full_path = NULL; in __dfs_mount_share()
218 full_path = build_unc_path_to_root(ctx, cifs_sb, true); in __dfs_mount_share()
219 if (IS_ERR(full_path)) { in __dfs_mount_share()
220 rc = PTR_ERR(full_path); in __dfs_mount_share()
221 full_path = NULL; in __dfs_mount_share()
223 ref_path = dfs_get_path(cifs_sb, full_path); in __dfs_mount_share()
248 kfree(full_path); in __dfs_mount_share()