Searched refs:prepath (Results 1 – 13 of 13) sorted by relevance
| /Linux-v6.6/fs/smb/client/ |
| D | namespace.c | 62 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() 194 tmp.UNC = tmp.prepath = NULL; in cifs_do_automount() 216 __func__, ctx->source, ctx->UNC, ctx->prepath); in cifs_do_automount()
|
| D | fs_context.c | 313 new_ctx->prepath = NULL; in smb3_fs_context_dup() 326 DUP_CTX_STR(prepath); in smb3_fs_context_dup() 454 char *cifs_sanitize_prepath(char *prepath, gfp_t gfp) in cifs_sanitize_prepath() argument 456 char *cursor1 = prepath, *cursor2 = prepath; in cifs_sanitize_prepath() 479 if (!*prepath) in cifs_sanitize_prepath() 481 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath() 498 plen = ctx->prepath ? strlen(ctx->prepath) + 1 : 0; in smb3_fs_context_fullpath() 506 memcpy(s + ulen + 1, ctx->prepath, plen); in smb3_fs_context_fullpath() 568 kfree(ctx->prepath); in smb3_parse_devname() 569 ctx->prepath = NULL; in smb3_parse_devname() [all …]
|
| D | dir.c | 42 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()
|
| D | dfs.c | 25 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()
|
| D | fs_context.h | 256 char *prepath; member 293 extern char *cifs_sanitize_prepath(char *prepath, gfp_t gfp);
|
| D | misc.c | 1221 kfree(cifs_sb->prepath); in cifs_update_super_prepath() 1222 cifs_sb->prepath = NULL; in cifs_update_super_prepath() 1225 cifs_sb->prepath = cifs_sanitize_prepath(prefix, GFP_ATOMIC); in cifs_update_super_prepath() 1226 if (IS_ERR(cifs_sb->prepath)) { in cifs_update_super_prepath() 1227 rc = PTR_ERR(cifs_sb->prepath); in cifs_update_super_prepath() 1228 cifs_sb->prepath = NULL; in cifs_update_super_prepath() 1231 if (cifs_sb->prepath) in cifs_update_super_prepath() 1232 convert_delimiter(cifs_sb->prepath, CIFS_DIR_SEP(cifs_sb)); in cifs_update_super_prepath()
|
| D | cifs_fs_sb.h | 62 char *prepath; member
|
| D | connect.c | 2770 old->prepath; in match_prepath() 2772 new->prepath; in match_prepath() 2778 if (old_set && new_set && !strcmp(new->prepath, old->prepath)) in match_prepath() 3251 if (ctx->prepath) { in cifs_setup_cifs_sb() 3252 cifs_sb->prepath = kstrdup(ctx->prepath, GFP_KERNEL); in cifs_setup_cifs_sb() 3253 if (cifs_sb->prepath == NULL) in cifs_setup_cifs_sb() 3558 kfree(cifs_sb->prepath); in cifs_mount() 3559 cifs_sb->prepath = ctx->prepath; in cifs_mount() 3560 ctx->prepath = NULL; in cifs_mount() 3767 kfree(cifs_sb->prepath); in cifs_umount()
|
| D | cached_dir.c | 113 cifs_sb->prepath) { in path_no_prefix() 114 len = strlen(cifs_sb->prepath) + 1; in path_no_prefix()
|
| D | cifsproto.h | 82 char *cifs_build_devname(char *nodename, const char *prepath);
|
| D | inode.c | 1440 && cifs_sb->prepath) { in cifs_root_iget() 1441 len = strlen(cifs_sb->prepath); in cifs_root_iget() 1446 memcpy(path+1, cifs_sb->prepath, len); in cifs_root_iget()
|
| D | cifsfs.c | 979 kfree(cifs_sb->prepath); in cifs_smb3_do_mount()
|
| D | sess.c | 421 ctx->prepath = ""; in cifs_ses_add_channel()
|