| /linux/tools/testing/selftests/filesystems/fat/ |
| H A D | run_fat_tests.sh | 45 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/drivers/acpi/acpica/ |
| H A D | nsnames.c | 414 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/tools/lib/subcmd/ |
| H A D | exec-cmd.c | 151 char *new_path = NULL; in setup_path() local 154 add_path(&new_path, tmp); in setup_path() 155 add_path(&new_path, argv0_path); in setup_path() 159 astrcat(&new_path, old_path); in setup_path() 161 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path() 163 setenv("PATH", new_path, 1); in setup_path() 165 free(new_path); in setup_path()
|
| /linux/arch/um/os-Linux/ |
| H A D | main.c | 76 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/fs/ |
| H A D | init.c | 168 struct path old_path, new_path; in init_link() local 176 new_dentry = start_creating_path(AT_FDCWD, newname, &new_path, 0); in init_link() 182 if (old_path.mnt != new_path.mnt) in init_link() 184 idmap = mnt_idmap(new_path.mnt); in init_link() 188 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link() 191 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in init_link() 194 end_creating_path(&new_path, new_dentry); in init_link()
|
| H A D | namei.c | 4970 struct path old_path, new_path; in do_linkat() local 4995 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat() 5002 if (old_path.mnt != new_path.mnt) in do_linkat() 5004 idmap = mnt_idmap(new_path.mnt); in do_linkat() 5008 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat() 5011 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in do_linkat() 5014 end_creating_path(&new_path, new_dentry); in do_linkat() 5261 struct path old_path, new_path; in do_renameat2() local 5288 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in do_renameat2() 5294 if (old_path.mnt != new_path.mnt) in do_renameat2() [all …]
|
| /linux/tools/perf/util/ |
| H A D | debuginfo.h | 56 char **new_path); 60 char **new_path __maybe_unused) in get_source_from_debuginfod()
|
| H A D | debuginfo.c | 189 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() argument 199 0, p, new_path); in get_source_from_debuginfod() 209 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod()
|
| H A D | probe-finder.c | 1904 const char *comp_dir, char **new_path) in find_source_path() argument 1913 if (!get_source_from_debuginfod(prefixed_raw_path, sbuild_id, new_path)) in find_source_path() 1923 *new_path = strdup(raw_path); in find_source_path() 1924 return *new_path ? 0 : -ENOMEM; in find_source_path() 1930 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in find_source_path() 1931 if (!*new_path) in find_source_path() 1935 sprintf(*new_path, "%s/%s", prefix, raw_path); in find_source_path() 1937 if (access(*new_path, R_OK) == 0) in find_source_path() 1942 zfree(new_path); in find_source_path() 1953 zfree(new_path); in find_source_path() [all …]
|
| H A D | probe-finder.h | 51 const char *comp_dir, char **new_path);
|
| /linux/fs/vboxsf/ |
| H A D | dir.c | 396 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local 406 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename() 407 if (IS_ERR(new_path)) { in vboxsf_dir_rename() 408 err = PTR_ERR(new_path); in vboxsf_dir_rename() 415 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename() 422 __putname(new_path); in vboxsf_dir_rename()
|
| H A D | vboxsf_wrappers.c | 340 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()
|
| H A D | vfsmod.h | 140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
|
| H A D | shfl_hostintf.h | 883 struct vmmdev_hgcm_function_parameter new_path; member
|
| /linux/tools/perf/ |
| H A D | builtin-help.c | 332 char *new_path; in setup_man_path() local 339 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path() 340 setenv("MANPATH", new_path, 1); in setup_man_path() 341 free(new_path); in setup_man_path()
|
| /linux/security/apparmor/ |
| H A D | mount.c | 663 const struct path *new_path, in build_pivotroot() argument 676 AA_BUG(!new_path); in build_pivotroot() 688 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot() 718 const struct path *new_path) in aa_pivotroot() argument 727 AA_BUG(!new_path); in aa_pivotroot() 735 build_pivotroot(subj_cred, profile, new_path, in aa_pivotroot()
|
| H A D | lsm.c | 399 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local 415 label, &new_path, 0, in apparmor_path_rename() 434 label, &new_path, in apparmor_path_rename() 775 const struct path *new_path) in apparmor_sb_pivotroot() argument 782 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
|
| /linux/security/apparmor/include/ |
| H A D | mount.h | 58 const struct path *new_path);
|
| /linux/fs/ocfs2/ |
| H A D | ioctl.c | 895 const char __user *new_path; in ocfs2_ioctl() local 901 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl() 904 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl() 972 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
|
| H A D | ocfs2_ioctl.h | 56 __u64 new_path; member
|
| /linux/fs/smb/server/ |
| H A D | vfs.c | 686 struct path new_path; in ksmbd_vfs_rename() local 715 &new_path, &new_last, &new_type, in ksmbd_vfs_rename() 720 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename() 729 trap = lock_rename_child(old_child, new_path.dentry); in ksmbd_vfs_rename() 752 new_dentry = lookup_one_qstr_excl(&new_last, new_path.dentry, in ksmbd_vfs_rename() 777 rd.new_parent = new_path.dentry, in ksmbd_vfs_rename() 789 unlock_rename(old_parent, new_path.dentry); in ksmbd_vfs_rename() 793 path_put(&new_path); in ksmbd_vfs_rename()
|
| /linux/security/tomoyo/ |
| H A D | tomoyo.c | 441 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument 443 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
|
| /linux/fs/exfat/ |
| H A D | namei.c | 1144 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local 1149 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename() 1184 ret = exfat_resolve_path(new_parent_inode, new_path, &uni_name); in __exfat_rename()
|
| /linux/fs/btrfs/ |
| H A D | send.c | 4012 struct fs_path *new_path; in update_ref_path() local 4018 new_path = fs_path_alloc(); in update_ref_path() 4019 if (!new_path) in update_ref_path() 4022 ret = get_cur_path(sctx, ref->dir, ref->dir_gen, new_path); in update_ref_path() 4024 fs_path_free(new_path); in update_ref_path() 4027 ret = fs_path_add(new_path, ref->name, ref->name_len); in update_ref_path() 4029 fs_path_free(new_path); in update_ref_path() 4034 set_ref_path(ref, new_path); in update_ref_path() 4149 struct fs_path *new_path) in rename_current_inode() argument 4153 ret = send_rename(sctx, current_path, new_path); in rename_current_inode() [all …]
|
| /linux/security/landlock/ |
| H A D | fs.c | 1494 const struct path *const new_path) in hook_sb_pivotroot() argument 1504 log_fs_change_topology_path(subject, handle_layer, new_path); in hook_sb_pivotroot()
|