Lines Matching refs:full_path
3014 char *full_path, *pos; in build_unc_path_to_root() local
3022 full_path = kmalloc(unc_len + pplen + 1, GFP_KERNEL); in build_unc_path_to_root()
3023 if (full_path == NULL) in build_unc_path_to_root()
3026 memcpy(full_path, ctx->UNC, unc_len); in build_unc_path_to_root()
3027 pos = full_path + unc_len; in build_unc_path_to_root()
3036 convert_delimiter(full_path, CIFS_DIR_SEP(cifs_sb)); in build_unc_path_to_root()
3037 cifs_dbg(FYI, "%s: full_path=%s\n", __func__, full_path); in build_unc_path_to_root()
3038 return full_path; in build_unc_path_to_root()
3058 char *full_path = NULL, *mdata = NULL; in expand_dfs_referral() local
3063 full_path = build_unc_path_to_root(ctx, cifs_sb, true); in expand_dfs_referral()
3064 if (IS_ERR(full_path)) in expand_dfs_referral()
3065 return PTR_ERR(full_path); in expand_dfs_referral()
3073 full_path + 1, &referral, in expand_dfs_referral()
3095 kfree(full_path); in expand_dfs_referral()
3134 static int do_dfs_failover(const char *path, const char *full_path, struct cifs_sb_info *cifs_sb, in do_dfs_failover() argument
3152 cifs_dbg(FYI, "%s: path=%s full_path=%s\n", __func__, npath, full_path); in do_dfs_failover()
3181 mdata = cifs_compose_mount_options(cifs_sb->ctx->mount_options, full_path + 1, &ref, in do_dfs_failover()
3286 char *full_path, in cifs_are_all_path_components_accessible() argument
3295 s = full_path; in cifs_are_all_path_components_accessible()
3322 full_path); in cifs_are_all_path_components_accessible()
3338 char *full_path; in is_path_remote() local
3346 full_path = cifs_build_path_to_root(ctx, cifs_sb, tcon, in is_path_remote()
3348 if (full_path == NULL) in is_path_remote()
3351 cifs_dbg(FYI, "%s: full_path: %s\n", __func__, full_path); in is_path_remote()
3354 full_path); in is_path_remote()
3356 kfree(full_path); in is_path_remote()
3362 cifs_sb, full_path, tcon->Flags & SMB_SHARE_IS_IN_DFS); in is_path_remote()
3370 kfree(full_path); in is_path_remote()
3475 char *ref_path = NULL, *full_path = NULL; in cifs_mount() local
3519 kfree(full_path); in cifs_mount()
3520 full_path = build_unc_path_to_root(ctx, cifs_sb, !!count); in cifs_mount()
3521 if (IS_ERR(full_path)) { in cifs_mount()
3522 rc = PTR_ERR(full_path); in cifs_mount()
3523 full_path = NULL; in cifs_mount()
3538 rc = do_dfs_failover(ref_path + 1, full_path, cifs_sb, ctx, root_ses, &xid, in cifs_mount()
3572 ref_path = dfs_cache_canonical_path(full_path, cifs_sb->local_nls, cifs_remap(cifs_sb)); in cifs_mount()
3573 kfree(full_path); in cifs_mount()
3574 full_path = NULL; in cifs_mount()
3616 kfree(full_path); in cifs_mount()