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

12

/linux-master/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-master/tools/perf/util/
H A Ddebuginfo.h54 char **new_path);
58 char **new_path __maybe_unused)
H A Ddebuginfo.c181 const char *sbuild_id, char **new_path)
191 0, p, new_path);
201 pr_debug("Got a source %s\n", *new_path);
180 get_source_from_debuginfod(const char *raw_path, const char *sbuild_id, char **new_path) argument
H A Dprobe-finder.h48 const char *comp_dir, char **new_path);
H A Dprobe-finder.c1863 const char *comp_dir, char **new_path)
1868 if (!get_source_from_debuginfod(raw_path, sbuild_id, new_path))
1878 *new_path = strdup(raw_path);
1879 return *new_path ? 0 : -ENOMEM;
1885 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2));
1886 if (!*new_path)
1890 sprintf(*new_path, "%s/%s", prefix, raw_path);
1892 if (access(*new_path, R_OK) == 0)
1897 zfree(new_path);
1908 zfree(new_path);
1862 find_source_path(const char *raw_path, const char *sbuild_id, const char *comp_dir, char **new_path) argument
[all...]
/linux-master/drivers/acpi/acpica/
H A Dnsnames.c414 char *new_path; local
420 new_path = new_path_buffer;
428 *new_path = *input_path;
429 new_path++;
434 *new_path = *input_path;
435 new_path++;
447 *new_path = *input_path;
448 new_path++;
457 *new_path = *input_path;
458 new_path
[all...]
/linux-master/tools/lib/subcmd/
H A Dexec-cmd.c151 char *new_path = NULL; local
154 add_path(&new_path, tmp);
155 add_path(&new_path, argv0_path);
159 astrcat(&new_path, old_path);
161 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin");
163 setenv("PATH", new_path, 1);
165 free(new_path);
/linux-master/arch/um/os-Linux/
H A Dmain.c76 char *new_path = NULL; local
93 new_path = malloc(path_len);
94 if (!new_path) {
98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path);
99 if (putenv(new_path)) {
101 free(new_path);
/linux-master/fs/
H A Dinit.c168 struct path old_path, new_path; local
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0);
182 if (old_path.mnt != new_path.mnt)
184 idmap = mnt_idmap(new_path.mnt);
188 error = security_path_link(old_path.dentry, &new_path, new_dentry);
191 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode,
194 done_path_create(&new_path, new_dentry);
H A Dnamei.c4634 struct path old_path, new_path; local
4660 new_dentry = filename_create(newdfd, new, &new_path,
4667 if (old_path.mnt != new_path.mnt)
4669 idmap = mnt_idmap(new_path.mnt);
4673 error = security_path_link(old_path.dentry, &new_path, new_dentry);
4676 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode,
4679 done_path_create(&new_path, new_dentry);
4925 struct path old_path, new_path; local
4949 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last,
4955 if (old_path.mnt != new_path
[all...]
H A Dnamespace.c3115 static int do_move_mount(struct path *old_path, struct path *new_path, argument
3127 mp = do_lock_mount(new_path, beneath);
3132 p = real_mount(new_path->mnt);
3159 if (d_is_dir(new_path->dentry) !=
3169 err = can_move_mount_beneath(old_path, new_path, mp);
3191 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, flags);
/linux-master/security/apparmor/include/
H A Dmount.h58 const struct path *new_path);
/linux-master/fs/vboxsf/
H A Ddir.c402 struct shfl_string *old_path, *new_path; local
412 new_path = vboxsf_path_from_dentry(sbi, new_dentry);
413 if (IS_ERR(new_path)) {
414 err = PTR_ERR(new_path);
421 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags);
428 __putname(new_path);
H A Dvboxsf_wrappers.c340 int vboxsf_symlink(u32 root, struct shfl_string *new_path, argument
348 parms.new_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN;
349 parms.new_path.u.pointer.size = shfl_string_buf_size(new_path);
350 parms.new_path.u.pointer.u.linear_addr = (uintptr_t)new_path;
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 in struct:shfl_symlink
/linux-master/tools/perf/
H A Dbuiltin-help.c332 char *new_path; local
339 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) {
340 setenv("MANPATH", new_path, 1);
341 free(new_path);
/linux-master/security/apparmor/
H A Dmount.c664 const struct path *new_path,
678 AA_BUG(!new_path);
690 error = aa_path_name(new_path, path_flags(profile, new_path),
720 const struct path *new_path)
729 AA_BUG(!new_path);
737 build_pivotroot(subj_cred, profile, new_path,
662 build_pivotroot(const struct cred *subj_cred, struct aa_profile *profile, const struct path *new_path, char *new_buffer, const struct path *old_path, char *old_buffer) argument
718 aa_pivotroot(const struct cred *subj_cred, struct aa_label *label, const struct path *old_path, const struct path *new_path) argument
H A Dlsm.c399 struct path new_path = { .mnt = new_dir->mnt, local
415 label, &new_path, 0,
434 label, &new_path,
768 const struct path *new_path)
775 error = aa_pivotroot(current_cred(), label, old_path, new_path);
767 apparmor_sb_pivotroot(const struct path *old_path, const struct path *new_path) argument
/linux-master/fs/ocfs2/
H A Docfs2_ioctl.h56 __u64 new_path; member in struct:reflink_arguments
H A Dioctl.c898 const char __user *new_path; local
904 new_path = (const char __user *)(unsigned long)args.new_path;
907 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve);
975 compat_ptr(args.new_path), preserve);
/linux-master/security/tomoyo/
H A Dtomoyo.c437 * @new_path: Pointer to "struct path".
441 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) argument
443 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path);
/linux-master/fs/smb/server/
H A Dvfs.c688 struct path new_path; local
708 &new_path, &new_last, &new_type,
713 if (old_path->mnt != new_path.mnt) {
722 trap = lock_rename_child(old_child, new_path.dentry);
745 new_dentry = lookup_one_qstr_excl(&new_last, new_path.dentry,
780 rd.new_mnt_idmap = mnt_idmap(new_path.mnt),
781 rd.new_dir = new_path.dentry->d_inode,
793 unlock_rename(old_parent, new_path.dentry);
797 path_put(&new_path);
/linux-master/fs/exfat/
H A Dnamei.c1113 const unsigned char *new_path = new_dentry->d_name.name; local
1121 if (new_path == NULL || strlen(new_path) == 0)
1170 ret = exfat_resolve_path(new_parent_inode, new_path, &newdir,
/linux-master/fs/bcachefs/
H A Dbtree_update_interior.c1946 btree_path_idx_t sib_path = 0, new_path = 0; local
2075 new_path = get_unlocked_mut_path(trans, btree, n->c.level, n->key.k.p);
2077 mark_btree_node_locked(trans, trans->paths + new_path, n->c.level, BTREE_NODE_INTENT_LOCKED);
2078 bch2_btree_path_level_init(trans, trans->paths + new_path, n);
2110 if (new_path)
2111 bch2_path_put(trans, new_path, true);
2133 btree_path_idx_t new_path = 0; local
2153 new_path = get_unlocked_mut_path(trans, iter->btree_id, n->c.level, n->key.k.p);
2155 mark_btree_node_locked(trans, trans->paths + new_path, n->c.level, BTREE_NODE_INTENT_LOCKED);
2156 bch2_btree_path_level_init(trans, trans->paths + new_path,
[all...]

Completed in 244 milliseconds

12