Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/filesystems/fat/
H A 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/drivers/acpi/acpica/
H A 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/tools/lib/subcmd/
H A Dexec-cmd.c151 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/fs/
H A Dinit.c168 struct path old_path, new_path; in init_link() local
176 new_dentry = kern_path_create(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 done_path_create(&new_path, new_dentry); in init_link()
H A Dnamei.c4883 struct path old_path, new_path; in do_linkat() local
4908 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat()
4915 if (old_path.mnt != new_path.mnt) in do_linkat()
4917 idmap = mnt_idmap(new_path.mnt); in do_linkat()
4921 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4924 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in do_linkat()
4927 done_path_create(&new_path, new_dentry); in do_linkat()
5174 struct path old_path, new_path; in do_renameat2() local
5201 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in do_renameat2()
5207 if (old_path.mnt != new_path.mnt) in do_renameat2()
[all …]
H A Dnamespace.c3578 struct path *new_path, enum mnt_tree_flags_t flags) in do_move_mount() argument
3588 err = do_lock_mount(new_path, &mp, beneath); in do_move_mount()
3593 p = real_mount(new_path->mnt); in do_move_mount()
3634 if (d_is_dir(new_path->dentry) != in do_move_mount()
3639 err = can_move_mount_beneath(old_path, new_path, mp.mp); in do_move_mount()
/linux/tools/perf/util/
H A Ddebuginfo.h56 char **new_path);
60 char **new_path __maybe_unused) in get_source_from_debuginfod()
H A Ddebuginfo.c185 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() argument
195 0, p, new_path); in get_source_from_debuginfod()
205 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod()
H A Dprobe-finder.c1904 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 Dprobe-finder.h51 const char *comp_dir, char **new_path);
/linux/fs/vboxsf/
H A Ddir.c403 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
413 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename()
414 if (IS_ERR(new_path)) { in vboxsf_dir_rename()
415 err = PTR_ERR(new_path); in vboxsf_dir_rename()
422 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
429 __putname(new_path); in vboxsf_dir_rename()
H A Dvfsmod.h140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
H A Dshfl_hostintf.h883 struct vmmdev_hgcm_function_parameter new_path; member
/linux/tools/perf/
H A Dbuiltin-help.c332 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/include/
H A Dmount.h58 const struct path *new_path);
/linux/fs/ocfs2/
H A Dioctl.c899 const char __user *new_path; in ocfs2_ioctl() local
905 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl()
908 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
976 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
H A Docfs2_ioctl.h56 __u64 new_path; member
/linux/fs/smb/server/
H A Dvfs.c685 struct path new_path; in ksmbd_vfs_rename() local
714 &new_path, &new_last, &new_type, in ksmbd_vfs_rename()
719 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename()
728 trap = lock_rename_child(old_child, new_path.dentry); in ksmbd_vfs_rename()
751 new_dentry = lookup_one_qstr_excl(&new_last, new_path.dentry, in ksmbd_vfs_rename()
776 rd.new_mnt_idmap = mnt_idmap(new_path.mnt), 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 Dtomoyo.c441 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/bcachefs/
H A Dbtree_update_interior.c2018 btree_path_idx_t sib_path = 0, new_path = 0; in __bch2_foreground_maybe_merge() local
2152 new_path = bch2_path_get_unlocked_mut(trans, btree, n->c.level, n->key.k.p); in __bch2_foreground_maybe_merge()
2154 mark_btree_node_locked(trans, trans->paths + new_path, n->c.level, BTREE_NODE_INTENT_LOCKED); in __bch2_foreground_maybe_merge()
2155 bch2_btree_path_level_init(trans, trans->paths + new_path, n); in __bch2_foreground_maybe_merge()
2190 if (new_path) in __bch2_foreground_maybe_merge()
2191 bch2_path_put(trans, new_path, true); in __bch2_foreground_maybe_merge()
2239 btree_path_idx_t new_path = 0; in bch2_btree_node_rewrite() local
2258 new_path = bch2_path_get_unlocked_mut(trans, iter->btree_id, n->c.level, n->key.k.p); in bch2_btree_node_rewrite()
2260 mark_btree_node_locked(trans, trans->paths + new_path, n->c.level, BTREE_NODE_INTENT_LOCKED); in bch2_btree_node_rewrite()
2261 bch2_btree_path_level_init(trans, trans->paths + new_path, n); in bch2_btree_node_rewrite()
[all …]
/linux/fs/exfat/
H A Dnamei.c1140 const unsigned char *new_path = new_dentry->d_name.name; in __exfat_rename() local
1145 if (new_path == NULL || strlen(new_path) == 0) in __exfat_rename()
1180 ret = exfat_resolve_path(new_parent_inode, new_path, &uni_name); in __exfat_rename()
/linux/security/landlock/
H A Dfs.c1494 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()
/linux/include/linux/
H A Dsecurity.h379 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
823 const struct path *new_path) in security_sb_pivotroot() argument
/linux/security/
H A Dsecurity.c1597 const struct path *new_path) in security_sb_pivotroot() argument
1599 return call_int_hook(sb_pivotroot, old_path, new_path); in security_sb_pivotroot()
/linux/drivers/scsi/
H A Dipr.c1259 int new_path = 0; in ipr_update_res_entry() local
1280 new_path = 1; in ipr_update_res_entry()
1283 if (res->sdev && new_path) in ipr_update_res_entry()