Home
last modified time | relevance | path

Searched refs:prepath (Results 1 – 10 of 10) sorted by relevance

/fs/cifs/
Dcifs_dfs_ref.c64 cifs_build_devname(char *nodename, const char *prepath) in cifs_build_devname() argument
91 pplen = prepath ? strlen(prepath) : 0; in cifs_build_devname()
111 memcpy(pos, prepath, pplen); in cifs_build_devname()
143 const char *prepath = NULL; in cifs_compose_mount_options() local
158 prepath = fullpath + ref->path_consumed; in cifs_compose_mount_options()
160 if (*prepath == '/' || *prepath == '\\') in cifs_compose_mount_options()
161 prepath++; in cifs_compose_mount_options()
164 name = cifs_build_devname(ref->node_name, prepath); in cifs_compose_mount_options()
310 tmp.UNC = tmp.prepath = NULL; in cifs_dfs_do_automount()
Ddir.c41 int pplen = ctx->prepath ? strlen(ctx->prepath) + 1 : 0; in cifs_build_path_to_root()
63 memcpy(full_path + dfsplen + 1, ctx->prepath, pplen); in cifs_build_path_to_root()
100 pplen = cifs_sb->prepath ? strlen(cifs_sb->prepath) + 1 : 0; in build_path_from_dentry_optional_prefix()
110 cifs_dbg(FYI, "using cifs_sb prepath <%s>\n", cifs_sb->prepath); in build_path_from_dentry_optional_prefix()
112 memcpy(s + 1, cifs_sb->prepath, pplen - 1); in build_path_from_dentry_optional_prefix()
Dfs_context.c306 new_ctx->prepath = NULL; in smb3_fs_context_dup()
319 DUP_CTX_STR(prepath); in smb3_fs_context_dup()
445 char *cifs_sanitize_prepath(char *prepath, gfp_t gfp) in cifs_sanitize_prepath() argument
447 char *cursor1 = prepath, *cursor2 = prepath; in cifs_sanitize_prepath()
469 return kstrdup(prepath, gfp); in cifs_sanitize_prepath()
524 kfree(ctx->prepath); in smb3_parse_devname()
525 ctx->prepath = NULL; in smb3_parse_devname()
531 ctx->prepath = cifs_sanitize_prepath(pos, GFP_KERNEL); in smb3_parse_devname()
532 if (!ctx->prepath) in smb3_parse_devname()
1573 kfree(ctx->prepath); in smb3_cleanup_fs_context_contents()
[all …]
Dfs_context.h251 char *prepath; member
287 extern char *cifs_sanitize_prepath(char *prepath, gfp_t gfp);
Dconnect.c2462 old->prepath; in match_prepath()
2464 new->prepath; in match_prepath()
2466 if (old_set && new_set && !strcmp(new->prepath, old->prepath)) in match_prepath()
2941 if (ctx->prepath) { in cifs_setup_cifs_sb()
2942 cifs_sb->prepath = kstrdup(ctx->prepath, GFP_KERNEL); in cifs_setup_cifs_sb()
2943 if (cifs_sb->prepath == NULL) in cifs_setup_cifs_sb()
3117 unsigned int pplen = useppath && ctx->prepath ? in build_unc_path_to_root()
3118 strlen(ctx->prepath) + 1 : 0; in build_unc_path_to_root()
3133 memcpy(pos + 1, ctx->prepath, pplen); in build_unc_path_to_root()
3168 kfree(ctx->prepath); in expand_dfs_referral()
[all …]
Dcifs_fs_sb.h62 char *prepath; member
Dmisc.c1311 kfree(cifs_sb->prepath); in cifs_update_super_prepath()
1314 cifs_sb->prepath = cifs_sanitize_prepath(prefix, GFP_ATOMIC); in cifs_update_super_prepath()
1315 if (!cifs_sb->prepath) in cifs_update_super_prepath()
1318 convert_delimiter(cifs_sb->prepath, CIFS_DIR_SEP(cifs_sb)); in cifs_update_super_prepath()
1320 cifs_sb->prepath = NULL; in cifs_update_super_prepath()
Dinode.c1324 && cifs_sb->prepath) {
1325 len = strlen(cifs_sb->prepath);
1330 memcpy(path+1, cifs_sb->prepath, len);
Dsess.c235 ctx.prepath = ""; in cifs_ses_add_channel()
Dcifsfs.c943 kfree(cifs_sb->prepath); in cifs_smb3_do_mount()