Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 5 of 5) sorted by relevance

/fs/ksmbd/
Dmisc.c288 int no_slash = 0, name_len, path_len; in convert_to_unix_name() local
294 path_len = share->path_sz; in convert_to_unix_name()
296 new_name = kmalloc(path_len + name_len + 2, GFP_KERNEL); in convert_to_unix_name()
300 memcpy(new_name, share->path, path_len); in convert_to_unix_name()
301 if (new_name[path_len - 1] != '/') { in convert_to_unix_name()
302 new_name[path_len] = '/'; in convert_to_unix_name()
306 memcpy(new_name + path_len + no_slash, name, name_len); in convert_to_unix_name()
307 path_len += name_len + no_slash; in convert_to_unix_name()
308 new_name[path_len] = 0x00; in convert_to_unix_name()
Dvfs.c1216 size_t path_len, remain_len; in ksmbd_vfs_kern_path_locked() local
1222 path_len = strlen(filepath); in ksmbd_vfs_kern_path_locked()
1223 remain_len = path_len; in ksmbd_vfs_kern_path_locked()
1229 char *filename = filepath + path_len - remain_len; in ksmbd_vfs_kern_path_locked()
/fs/vboxsf/
Dutils.c368 int path_len, out_len, nb; in vboxsf_path_from_dentry() local
382 path_len = strlen(path); in vboxsf_path_from_dentry()
394 while (path_len) { in vboxsf_path_from_dentry()
395 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
402 path_len -= nb; in vboxsf_path_from_dentry()
418 if ((SHFLSTRING_HEADER_SIZE + path_len + 1) > PATH_MAX) { in vboxsf_path_from_dentry()
427 memmove(shfl_path->string.utf8, path, path_len); in vboxsf_path_from_dentry()
428 shfl_path->string.utf8[path_len] = 0; in vboxsf_path_from_dentry()
429 shfl_path->length = path_len; in vboxsf_path_from_dentry()
430 shfl_path->size = path_len + 1; in vboxsf_path_from_dentry()
/fs/btrfs/
Dsend.c395 int path_len; in fs_path_ensure_buf() local
408 path_len = p->end - p->start; in fs_path_ensure_buf()
431 tmp_buf = p->buf + old_buf_len - path_len - 1; in fs_path_ensure_buf()
433 p->start = p->end - path_len; in fs_path_ensure_buf()
434 memmove(p->start, tmp_buf, path_len + 1); in fs_path_ensure_buf()
437 p->end = p->start + path_len; in fs_path_ensure_buf()
/fs/cifs/
Dsmb2pdu.c2532 int treename_len, path_len; in alloc_path_with_tree_prefix() local
2546 path_len = UniStrnlen((wchar_t *)path, PATH_MAX); in alloc_path_with_tree_prefix()
2552 *out_len = treename_len + 1 + path_len; in alloc_path_with_tree_prefix()