Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/cifs/
Dcifs_dfs_ref.c63 cifs_build_devname(char *nodename, const char *prepath) in cifs_build_devname() argument
90 pplen = prepath ? strlen(prepath) : 0; in cifs_build_devname()
110 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()
Ddir.c52 int pplen = vol->prepath ? strlen(vol->prepath) + 1 : 0; in cifs_build_path_to_root()
74 memcpy(full_path + dfsplen + 1, vol->prepath, pplen); in cifs_build_path_to_root()
111 pplen = cifs_sb->prepath ? strlen(cifs_sb->prepath) + 1 : 0; in build_path_from_dentry_optional_prefix()
174 cifs_dbg(FYI, "using cifs_sb prepath <%s>\n", cifs_sb->prepath); in build_path_from_dentry_optional_prefix()
175 memcpy(full_path+dfsplen+1, cifs_sb->prepath, pplen-1); in build_path_from_dentry_optional_prefix()
Dcifs_fs_sb.h81 char *prepath; member
Dconnect.c1367 vol->prepath = kstrdup(pos, GFP_KERNEL); in cifs_parse_devname()
1368 if (!vol->prepath) in cifs_parse_devname()
3480 old->prepath; in match_prepath()
3482 new->prepath; in match_prepath()
3484 if (old_set && new_set && !strcmp(new->prepath, old->prepath)) in match_prepath()
4016 if (pvolume_info->prepath) { in cifs_setup_cifs_sb()
4017 cifs_sb->prepath = kstrdup(pvolume_info->prepath, GFP_KERNEL); in cifs_setup_cifs_sb()
4018 if (cifs_sb->prepath == NULL) in cifs_setup_cifs_sb()
4034 kfree(volume_info->prepath); in cifs_cleanup_volume_info_contents()
4188 unsigned int pplen = useppath && vol->prepath ? in build_unc_path_to_root()
[all …]
Dmisc.c1179 kfree(cifs_sb->prepath); in update_super_prepath()
1182 cifs_sb->prepath = kstrndup(prefix, strlen(prefix), GFP_ATOMIC); in update_super_prepath()
1183 if (!cifs_sb->prepath) { in update_super_prepath()
1188 convert_delimiter(cifs_sb->prepath, CIFS_DIR_SEP(cifs_sb)); in update_super_prepath()
1190 cifs_sb->prepath = NULL; in update_super_prepath()
Ddfs_cache.c1177 if (vol->prepath) { in dup_vol()
1178 cifs_dbg(FYI, "%s: vol->prepath: %s\n", __func__, vol->prepath); in dup_vol()
1179 new->prepath = kstrndup(vol->prepath, strlen(vol->prepath), in dup_vol()
1181 if (!new->prepath) in dup_vol()
Dinode.c1341 && cifs_sb->prepath) {
1342 len = strlen(cifs_sb->prepath);
1347 memcpy(path+1, cifs_sb->prepath, len);
Dcifsglob.h611 char *prepath; member
Dcifsfs.c872 kfree(cifs_sb->prepath); in cifs_smb3_do_mount()
Dsess.c223 vol.prepath = ""; in cifs_ses_add_channel()