Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/filesystems/fat/
Drun_fat_tests.sh45 local new_path="${MNT_PATH}/new_file"
48 echo new | sudo tee "${new_path}" >/dev/null 2>&1
49 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
52 grep old "${new_path}" >/dev/null 2>&1
60 local new_path="${dir_path}/new_file"
64 echo new | sudo tee "${new_path}" >/dev/null 2>&1
65 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
68 grep old "${new_path}" >/dev/null 2>&1
/linux-6.1.9/drivers/acpi/acpica/
Dnsnames.c414 char *new_path; in acpi_ns_normalize_pathname() local
420 new_path = new_path_buffer; in acpi_ns_normalize_pathname()
428 *new_path = *input_path; in acpi_ns_normalize_pathname()
429 new_path++; in acpi_ns_normalize_pathname()
434 *new_path = *input_path; in acpi_ns_normalize_pathname()
435 new_path++; in acpi_ns_normalize_pathname()
447 *new_path = *input_path; in acpi_ns_normalize_pathname()
448 new_path++; in acpi_ns_normalize_pathname()
457 *new_path = *input_path; in acpi_ns_normalize_pathname()
458 new_path++; in acpi_ns_normalize_pathname()
[all …]
/linux-6.1.9/tools/lib/subcmd/
Dexec-cmd.c146 char *new_path = NULL; in setup_path() local
149 add_path(&new_path, tmp); in setup_path()
150 add_path(&new_path, argv0_path); in setup_path()
154 astrcat(&new_path, old_path); in setup_path()
156 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path()
158 setenv("PATH", new_path, 1); in setup_path()
160 free(new_path); in setup_path()
/linux-6.1.9/arch/um/os-Linux/
Dmain.c76 char *new_path = NULL; in setup_env_path() local
93 new_path = malloc(path_len); in setup_env_path()
94 if (!new_path) { in setup_env_path()
98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
99 if (putenv(new_path)) { in setup_env_path()
101 free(new_path); in setup_env_path()
/linux-6.1.9/fs/
Dinit.c169 struct path old_path, new_path; in init_link() local
177 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
183 if (old_path.mnt != new_path.mnt) in init_link()
185 mnt_userns = mnt_user_ns(new_path.mnt); in init_link()
189 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
192 error = vfs_link(old_path.dentry, mnt_userns, new_path.dentry->d_inode, in init_link()
195 done_path_create(&new_path, new_dentry); in init_link()
Dnamei.c4558 struct path old_path, new_path; in do_linkat() local
4584 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat()
4591 if (old_path.mnt != new_path.mnt) in do_linkat()
4593 mnt_userns = mnt_user_ns(new_path.mnt); in do_linkat()
4597 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4600 error = vfs_link(old_path.dentry, mnt_userns, new_path.dentry->d_inode, in do_linkat()
4603 done_path_create(&new_path, new_dentry); in do_linkat()
4824 struct path old_path, new_path; in do_renameat2() local
4848 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in do_renameat2()
4854 if (old_path.mnt != new_path.mnt) in do_renameat2()
[all …]
Dnamespace.c2822 static int do_move_mount(struct path *old_path, struct path *new_path) in do_move_mount() argument
2832 mp = lock_mount(new_path); in do_move_mount()
2837 p = real_mount(new_path->mnt); in do_move_mount()
2862 if (d_is_dir(new_path->dentry) != in do_move_mount()
2883 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, in do_move_mount()
/linux-6.1.9/fs/vboxsf/
Ddir.c401 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
411 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename()
412 if (IS_ERR(new_path)) { in vboxsf_dir_rename()
413 err = PTR_ERR(new_path); in vboxsf_dir_rename()
420 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
427 __putname(new_path); in vboxsf_dir_rename()
Dvboxsf_wrappers.c340 int vboxsf_symlink(u32 root, struct shfl_string *new_path, in vboxsf_symlink() argument
348 parms.new_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink()
349 parms.new_path.u.pointer.size = shfl_string_buf_size(new_path); in vboxsf_symlink()
350 parms.new_path.u.pointer.u.linear_addr = (uintptr_t)new_path; in vboxsf_symlink()
Dvfsmod.h140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
Dshfl_hostintf.h883 struct vmmdev_hgcm_function_parameter new_path; member
/linux-6.1.9/tools/perf/
Dbuiltin-help.c330 char *new_path; in setup_man_path() local
337 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
338 setenv("MANPATH", new_path, 1); in setup_man_path()
339 free(new_path); in setup_man_path()
/linux-6.1.9/security/apparmor/
Dmount.c639 const struct path *new_path, in build_pivotroot() argument
651 AA_BUG(!new_path); in build_pivotroot()
663 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot()
691 const struct path *new_path) in aa_pivotroot() argument
700 AA_BUG(!new_path); in aa_pivotroot()
708 build_pivotroot(profile, new_path, new_buffer, in aa_pivotroot()
Dlsm.c373 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local
386 error = aa_path_perm(OP_RENAME_SRC, label, &new_path, 0, in apparmor_path_rename()
402 error = aa_path_perm(OP_RENAME_DEST, label, &new_path, in apparmor_path_rename()
604 const struct path *new_path) in apparmor_sb_pivotroot() argument
611 error = aa_pivotroot(label, old_path, new_path); in apparmor_sb_pivotroot()
/linux-6.1.9/tools/perf/util/
Dprobe-finder.c2002 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() argument
2012 0, p, new_path); in get_source_from_debuginfod()
2022 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod()
2029 char **new_path __maybe_unused) in get_source_from_debuginfod()
2041 const char *comp_dir, char **new_path) in find_source_path() argument
2046 if (!get_source_from_debuginfod(raw_path, sbuild_id, new_path)) in find_source_path()
2056 *new_path = strdup(raw_path); in find_source_path()
2057 return *new_path ? 0 : -ENOMEM; in find_source_path()
2063 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in find_source_path()
2064 if (!*new_path) in find_source_path()
[all …]
Dprobe-finder.h65 const char *comp_dir, char **new_path);
/linux-6.1.9/security/apparmor/include/
Dmount.h48 const struct path *new_path);
/linux-6.1.9/fs/ocfs2/
Dioctl.c849 const char __user *new_path; in ocfs2_ioctl() local
894 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl()
897 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
960 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
Docfs2_ioctl.h56 __u64 new_path; member
/linux-6.1.9/fs/proc/
Dproc_sysctl.c1565 char *new_path, *pos; in __register_sysctl_paths() local
1567 pos = new_path = kmalloc(PATH_MAX, GFP_KERNEL); in __register_sysctl_paths()
1568 if (!new_path) in __register_sysctl_paths()
1573 pos = append_path(new_path, pos, component->procname); in __register_sysctl_paths()
1578 pos = append_path(new_path, pos, table->procname); in __register_sysctl_paths()
1584 header = __register_sysctl_table(set, new_path, table); in __register_sysctl_paths()
1597 if (register_leaf_sysctl_tables(new_path, pos, &subheader, in __register_sysctl_paths()
1603 kfree(new_path); in __register_sysctl_paths()
/linux-6.1.9/security/tomoyo/
Dtomoyo.c427 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument
429 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/linux-6.1.9/fs/exfat/
Dnamei.c1164 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local
1173 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename()
1229 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir, in __exfat_rename()
/linux-6.1.9/security/landlock/
Dfs.c1080 const struct path *const new_path) in hook_sb_pivotroot() argument
/linux-6.1.9/include/linux/
Dsecurity.h311 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
698 const struct path *new_path) in security_sb_pivotroot() argument
/linux-6.1.9/fs/btrfs/
Dsend.c3811 struct fs_path *new_path; in update_ref_path() local
3817 new_path = fs_path_alloc(); in update_ref_path()
3818 if (!new_path) in update_ref_path()
3821 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); in update_ref_path()
3823 fs_path_free(new_path); in update_ref_path()
3826 ret = fs_path_add(new_path, ref->name, ref->name_len); in update_ref_path()
3828 fs_path_free(new_path); in update_ref_path()
3833 set_ref_path(ref, new_path); in update_ref_path()

12