Lines Matching refs:full_path

3134 	char *full_path, *pos;  in build_unc_path_to_root()  local
3142 full_path = kmalloc(unc_len + pplen + 1, GFP_KERNEL); in build_unc_path_to_root()
3143 if (full_path == NULL) in build_unc_path_to_root()
3146 memcpy(full_path, ctx->UNC, unc_len); in build_unc_path_to_root()
3147 pos = full_path + unc_len; in build_unc_path_to_root()
3156 convert_delimiter(full_path, CIFS_DIR_SEP(cifs_sb)); in build_unc_path_to_root()
3157 cifs_dbg(FYI, "%s: full_path=%s\n", __func__, full_path); in build_unc_path_to_root()
3158 return full_path; in build_unc_path_to_root()
3167 static int expand_dfs_referral(struct mount_ctx *mnt_ctx, const char *full_path, in expand_dfs_referral() argument
3175 mdata = cifs_compose_mount_options(cifs_sb->ctx->mount_options, full_path + 1, referral, in expand_dfs_referral()
3254 char *full_path, in cifs_are_all_path_components_accessible() argument
3263 s = full_path; in cifs_are_all_path_components_accessible()
3290 full_path); in cifs_are_all_path_components_accessible()
3308 char *full_path; in is_path_remote() local
3316 full_path = cifs_build_path_to_root(ctx, cifs_sb, tcon, in is_path_remote()
3318 if (full_path == NULL) in is_path_remote()
3321 cifs_dbg(FYI, "%s: full_path: %s\n", __func__, full_path); in is_path_remote()
3324 full_path); in is_path_remote()
3326 kfree(full_path); in is_path_remote()
3332 cifs_sb, full_path, tcon->Flags & SMB_SHARE_IS_IN_DFS); in is_path_remote()
3340 kfree(full_path); in is_path_remote()
3387 static int connect_dfs_target(struct mount_ctx *mnt_ctx, const char *full_path, in connect_dfs_target() argument
3399 rc = expand_dfs_referral(mnt_ctx, full_path, &ref); in connect_dfs_target()
3423 char *full_path; in connect_dfs_root() local
3436 full_path = build_unc_path_to_root(ctx, cifs_sb, true); in connect_dfs_root()
3437 if (IS_ERR(full_path)) in connect_dfs_root()
3438 return PTR_ERR(full_path); in connect_dfs_root()
3451 rc = connect_dfs_target(mnt_ctx, full_path, mnt_ctx->origin_fullpath + 1, tit); in connect_dfs_root()
3461 kfree(full_path); in connect_dfs_root()
3470 char *full_path; in __follow_dfs_link() local
3474 full_path = build_unc_path_to_root(ctx, cifs_sb, true); in __follow_dfs_link()
3475 if (IS_ERR(full_path)) in __follow_dfs_link()
3476 return PTR_ERR(full_path); in __follow_dfs_link()
3479 mnt_ctx->leaf_fullpath = dfs_cache_canonical_path(full_path, cifs_sb->local_nls, in __follow_dfs_link()
3496 rc = connect_dfs_target(mnt_ctx, full_path, mnt_ctx->leaf_fullpath + 1, tit); in __follow_dfs_link()
3504 kfree(full_path); in __follow_dfs_link()
3514 char *full_path; in follow_dfs_link() local
3517 full_path = build_unc_path_to_root(ctx, cifs_sb, true); in follow_dfs_link()
3518 if (IS_ERR(full_path)) in follow_dfs_link()
3519 return PTR_ERR(full_path); in follow_dfs_link()
3522 mnt_ctx->origin_fullpath = dfs_cache_canonical_path(full_path, cifs_sb->local_nls, in follow_dfs_link()
3524 kfree(full_path); in follow_dfs_link()