Searched refs:prepath (Results 1 – 13 of 13) sorted by relevance
/linux/fs/smb/client/ |
H A D | namespace.c | 50 * cifs_build_devname - build a devicename from a UNC and optional prepath 52 * @prepath: pointer to prefixpath (or NULL if there isn't one) 56 * concatenate the prepath onto the end of it if there is one. 62 cifs_build_devname(char *nodename, const char *prepath) in cifs_build_devname() argument 86 * +1 for delimiter between UNC and prepath in cifs_build_devname() 89 pplen = prepath ? strlen(prepath) : 0; in cifs_build_devname() 109 memcpy(pos, prepath, pplen); in cifs_build_devname() 241 tmp.UNC = tmp.prepath = NULL; in cifs_do_automount() 264 cifs_dbg(FYI, "%s: ctx: source=%s UNC=%s prepath in cifs_do_automount() [all...] |
H A D | dfs.c | 27 const char *prepath = NULL; in dfs_parse_target_referral() local 37 prepath = full_path + ref->path_consumed; in dfs_parse_target_referral() 39 if (*prepath == '/' || *prepath == '\\') in dfs_parse_target_referral() 40 prepath++; in dfs_parse_target_referral() 43 path = cifs_build_devname(ref->node_name, prepath); in dfs_parse_target_referral()
|
H A D | fs_context.c | 436 new_ctx->prepath = NULL; in smb3_fs_context_dup() 452 DUP_CTX_STR(prepath); in smb3_fs_context_dup() 583 char *cifs_sanitize_prepath(char *prepath, gfp_t gfp) in cifs_sanitize_prepath() argument 585 char *cursor1 = prepath, *cursor2 = prepath; in cifs_sanitize_prepath() 608 if (!*prepath) in cifs_sanitize_prepath() 610 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath() 617 * Return full path based on the values of @ctx->{UNC,prepath}. 627 plen = ctx->prepath ? strlen(ctx->prepath) in smb3_fs_context_fullpath() [all...] |
H A D | dir.c | 43 int pplen = ctx->prepath ? strlen(ctx->prepath) + 1 : 0; in cifs_build_path_to_root() 65 memcpy(full_path + dfsplen + 1, ctx->prepath, pplen); in cifs_build_path_to_root() 101 pplen = cifs_sb->prepath ? strlen(cifs_sb->prepath) + 1 : 0; in __build_path_from_dentry_optional_prefix() 111 cifs_dbg(FYI, "using cifs_sb prepath <%s>\n", cifs_sb->prepath); in __build_path_from_dentry_optional_prefix() 113 memcpy(s + 1, cifs_sb->prepath, pplen - 1); in __build_path_from_dentry_optional_prefix() 117 /* BB test paths to Windows with '/' in the midst of prepath */ in __build_path_from_dentry_optional_prefix()
|
H A D | misc.c | 1217 kfree(cifs_sb->prepath); in cifs_update_super_prepath() 1218 cifs_sb->prepath = NULL; in cifs_update_super_prepath() 1221 cifs_sb->prepath = cifs_sanitize_prepath(prefix, GFP_ATOMIC); in cifs_update_super_prepath() 1222 if (IS_ERR(cifs_sb->prepath)) { in cifs_update_super_prepath() 1223 rc = PTR_ERR(cifs_sb->prepath); in cifs_update_super_prepath() 1224 cifs_sb->prepath = NULL; in cifs_update_super_prepath() 1227 if (cifs_sb->prepath) in cifs_update_super_prepath() 1228 convert_delimiter(cifs_sb->prepath, CIFS_DIR_SEP(cifs_sb)); in cifs_update_super_prepath()
|
H A D | cifs_fs_sb.h | 63 char *prepath; member
|
H A D | fs_context.h | 317 char *prepath; member 381 extern char *cifs_sanitize_prepath(char *prepath, gfp_t gfp);
|
H A D | connect.c | 2982 old->prepath; in match_prepath() 2984 new->prepath; in match_prepath() 2990 if (old_set && new_set && !strcmp(new->prepath, old->prepath)) in match_prepath() 3627 if (ctx->prepath) { in cifs_setup_cifs_sb() 3628 cifs_sb->prepath = kstrdup(ctx->prepath, GFP_KERNEL); in cifs_setup_cifs_sb() 3629 if (cifs_sb->prepath == NULL) in cifs_setup_cifs_sb() 3933 kfree(cifs_sb->prepath); in cifs_mount() 3934 cifs_sb->prepath = ctx->prepath; in cifs_mount() 3935 ctx->prepath = NULL; in cifs_mount() 4178 kfree(cifs_sb->prepath); in cifs_umount()
|
H A D | cached_dir.c | 122 cifs_sb->prepath) { in path_no_prefix() 123 len = strlen(cifs_sb->prepath) + 1; in path_no_prefix()
|
H A D | cifsproto.h | 85 char *cifs_build_devname(char *nodename, const char *prepath);
|
H A D | inode.c | 1664 && cifs_sb->prepath) { in cifs_root_iget() 1665 len = strlen(cifs_sb->prepath); in cifs_root_iget() 1670 memcpy(path+1, cifs_sb->prepath, len); in cifs_root_iget()
|
H A D | cifsfs.c | 1035 kfree(cifs_sb->prepath); in cifs_smb3_do_mount()
|
H A D | sess.c | 527 ctx->prepath = ""; in cifs_ses_add_channel()
|