Home
last modified time | relevance | path

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

/fs/smb/client/
Dnamespace.c62 cifs_build_devname(char *nodename, const char *prepath) in cifs_build_devname() argument
89 pplen = prepath ? strlen(prepath) : 0; in cifs_build_devname()
109 memcpy(pos, prepath, pplen); in cifs_build_devname()
221 tmp.UNC = tmp.prepath = NULL; in cifs_do_automount()
245 __func__, ctx->source, ctx->UNC, ctx->prepath, ctx->dfs_automount); in cifs_do_automount()
Dfs_context.c345 new_ctx->prepath = NULL; in smb3_fs_context_dup()
359 DUP_CTX_STR(prepath); in smb3_fs_context_dup()
488 char *cifs_sanitize_prepath(char *prepath, gfp_t gfp) in cifs_sanitize_prepath() argument
490 char *cursor1 = prepath, *cursor2 = prepath; in cifs_sanitize_prepath()
513 if (!*prepath) in cifs_sanitize_prepath()
515 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath()
532 plen = ctx->prepath ? strlen(ctx->prepath) + 1 : 0; in smb3_fs_context_fullpath()
540 memcpy(s + ulen + 1, ctx->prepath, plen); in smb3_fs_context_fullpath()
602 kfree(ctx->prepath); in smb3_parse_devname()
603 ctx->prepath = NULL; in smb3_parse_devname()
[all …]
Ddfs.c25 const char *prepath = NULL; in dfs_parse_target_referral() local
35 prepath = full_path + ref->path_consumed; in dfs_parse_target_referral()
37 if (*prepath == '/' || *prepath == '\\') in dfs_parse_target_referral()
38 prepath++; in dfs_parse_target_referral()
41 path = cifs_build_devname(ref->node_name, prepath); in dfs_parse_target_referral()
Ddir.c42 int pplen = ctx->prepath ? strlen(ctx->prepath) + 1 : 0; in cifs_build_path_to_root()
64 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()
Dmisc.c1261 kfree(cifs_sb->prepath); in cifs_update_super_prepath()
1262 cifs_sb->prepath = NULL; in cifs_update_super_prepath()
1265 cifs_sb->prepath = cifs_sanitize_prepath(prefix, GFP_ATOMIC); in cifs_update_super_prepath()
1266 if (IS_ERR(cifs_sb->prepath)) { in cifs_update_super_prepath()
1267 rc = PTR_ERR(cifs_sb->prepath); in cifs_update_super_prepath()
1268 cifs_sb->prepath = NULL; in cifs_update_super_prepath()
1271 if (cifs_sb->prepath) in cifs_update_super_prepath()
1272 convert_delimiter(cifs_sb->prepath, CIFS_DIR_SEP(cifs_sb)); in cifs_update_super_prepath()
Dfs_context.h270 char *prepath; member
309 extern char *cifs_sanitize_prepath(char *prepath, gfp_t gfp);
Dcifs_fs_sb.h62 char *prepath; member
Dconnect.c2829 old->prepath; in match_prepath()
2831 new->prepath; in match_prepath()
2837 if (old_set && new_set && !strcmp(new->prepath, old->prepath)) in match_prepath()
3316 if (ctx->prepath) { in cifs_setup_cifs_sb()
3317 cifs_sb->prepath = kstrdup(ctx->prepath, GFP_KERNEL); in cifs_setup_cifs_sb()
3318 if (cifs_sb->prepath == NULL) in cifs_setup_cifs_sb()
3634 kfree(cifs_sb->prepath); in cifs_mount()
3635 cifs_sb->prepath = ctx->prepath; in cifs_mount()
3636 ctx->prepath = NULL; in cifs_mount()
3869 kfree(cifs_sb->prepath); in cifs_umount()
Dcached_dir.c113 cifs_sb->prepath) { in path_no_prefix()
114 len = strlen(cifs_sb->prepath) + 1; in path_no_prefix()
Dinode.c1474 && cifs_sb->prepath) { in cifs_root_iget()
1475 len = strlen(cifs_sb->prepath); in cifs_root_iget()
1480 memcpy(path+1, cifs_sb->prepath, len); in cifs_root_iget()
Dcifsproto.h82 char *cifs_build_devname(char *nodename, const char *prepath);
Dcifsfs.c983 kfree(cifs_sb->prepath); in cifs_smb3_do_mount()
Dsess.c574 ctx->prepath = ""; in cifs_ses_add_channel()