Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/filesystems/fat/
H A Drun_fat_tests.sh44 local old_path="${MNT_PATH}/old_file"
47 echo old | sudo tee "${old_path}" >/dev/null 2>&1
49 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
51 grep new "${old_path}" >/dev/null 2>&1
59 local old_path="${MNT_PATH}/old_file"
63 echo old | sudo tee "${old_path}" >/dev/null 2>&1
65 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
67 grep new "${old_path}" >/dev/null 2>&1
/openbmc/linux/arch/um/os-Linux/
H A Dmain.c77 char *old_path = NULL; in setup_env_path() local
80 old_path = getenv("PATH"); in setup_env_path()
85 if (!old_path || (path_len = strlen(old_path)) == 0) { in setup_env_path()
98 snprintf(new_path, path_len, "PATH=%s" UML_LIB_PATH, old_path); in setup_env_path()
/openbmc/qemu/tests/qtest/
H A Dqos-test.c33 static char *old_path; variable
100 if (g_strcmp0(old_path, path)) { in restart_qemu_or_continue()
103 old_path = g_strdup(path); in restart_qemu_or_continue()
113 g_free(old_path); in qos_invalidate_command_line()
114 old_path = NULL; in qos_invalidate_command_line()
356 g_free(old_path); in main()
/openbmc/linux/security/apparmor/
H A Dmount.c426 struct path old_path; in aa_bind_mount() local
453 path_put(&old_path); in aa_bind_mount()
520 struct path old_path; in aa_move_mount_old() local
525 error = kern_path(orig_name, LOOKUP_FOLLOW, &old_path); in aa_move_mount_old()
530 path_put(&old_path); in aa_move_mount_old()
666 const struct path *old_path, in build_pivotroot() argument
679 AA_BUG(!old_path); in build_pivotroot()
685 error = aa_path_name(old_path, path_flags(profile, old_path), in build_pivotroot()
719 const struct path *old_path, in aa_pivotroot() argument
728 AA_BUG(!old_path); in aa_pivotroot()
[all …]
H A Dlsm.c389 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename() local
413 label, &old_path, in apparmor_path_rename()
420 label, &old_path, 0, in apparmor_path_rename()
649 static int apparmor_sb_pivotroot(const struct path *old_path, in apparmor_sb_pivotroot() argument
657 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
/openbmc/linux/fs/
H A Dinit.c169 struct path old_path, new_path; in init_link() local
173 error = kern_path(oldname, 0, &old_path); in init_link()
183 if (old_path.mnt != new_path.mnt) in init_link()
186 error = may_linkat(idmap, &old_path); 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, idmap, new_path.dentry->d_inode, in init_link()
197 path_put(&old_path); in init_link()
H A Dnamespace.c2591 mnt = clone_mnt(old, old_path->dentry, 0); in __do_loopback()
2605 struct path old_path; in do_loopback() local
2616 if (mnt_ns_loop(old_path.dentry)) in do_loopback()
2629 mnt = __do_loopback(&old_path, recurse); in do_loopback()
2644 path_put(&old_path); in do_loopback()
3133 old = real_mount(old_path->mnt); in do_move_mount()
3158 if (!path_mounted(old_path)) in do_move_mount()
3162 d_is_dir(old_path->dentry)) in do_move_mount()
3215 struct path old_path; in do_move_mount_old() local
3225 err = do_move_mount(&old_path, path, false); in do_move_mount_old()
[all …]
H A Dnamei.c4626 struct path old_path, new_path; in do_linkat() local
4659 if (old_path.mnt != new_path.mnt) in do_linkat()
4662 error = may_linkat(idmap, &old_path); in do_linkat()
4675 path_put(&old_path); in do_linkat()
4680 path_put(&old_path); in do_linkat()
4685 path_put(&old_path); in do_linkat()
4917 struct path old_path, new_path; in do_renameat2() local
4947 if (old_path.mnt != new_path.mnt) in do_renameat2()
4959 error = mnt_want_write(old_path.mnt); in do_renameat2()
5037 mnt_drop_write(old_path.mnt); in do_renameat2()
[all …]
/openbmc/linux/tools/lib/subcmd/
H A Dexec-cmd.c150 const char *old_path = getenv("PATH"); in setup_path() local
158 if (old_path) in setup_path()
159 astrcat(&new_path, old_path); in setup_path()
/openbmc/linux/tools/testing/kunit/
H A Dkunit_kernel.py294 old_path = get_old_kunitconfig_path(build_dir)
295 if os.path.exists(old_path):
296 os.remove(old_path) # write_to_file appends to the file
297 self._kconfig.write_to_file(old_path)
301 old_path = get_old_kunitconfig_path(build_dir)
302 if not os.path.exists(old_path):
305 old_kconfig = kunit_config.parse_file(old_path)
/openbmc/linux/fs/vboxsf/
H A Ddir.c402 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
408 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename()
409 if (IS_ERR(old_path)) in vboxsf_dir_rename()
410 return PTR_ERR(old_path); in vboxsf_dir_rename()
421 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
430 __putname(old_path); in vboxsf_dir_rename()
H A Dvboxsf_wrappers.c341 struct shfl_string *old_path, struct shfl_fsobjinfo *buf) in vboxsf_symlink() argument
352 parms.old_path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL_IN; in vboxsf_symlink()
353 parms.old_path.u.pointer.size = shfl_string_buf_size(old_path); in vboxsf_symlink()
354 parms.old_path.u.pointer.u.linear_addr = (uintptr_t)old_path; in vboxsf_symlink()
H A Dvfsmod.h141 struct shfl_string *old_path, struct shfl_fsobjinfo *buf);
H A Dshfl_hostintf.h889 struct vmmdev_hgcm_function_parameter old_path; member
/openbmc/linux/security/apparmor/include/
H A Dmount.h57 struct aa_label *label, const struct path *old_path,
/openbmc/linux/fs/ocfs2/
H A Dioctl.c897 const char __user *old_path; in ocfs2_ioctl() local
903 old_path = (const char __user *)(unsigned long)args.old_path; in ocfs2_ioctl()
907 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
974 return ocfs2_reflink_ioctl(inode, compat_ptr(args.old_path), in ocfs2_compat_ioctl()
H A Docfs2_ioctl.h55 __u64 old_path; member
/openbmc/linux/security/tomoyo/
H A Dtomoyo.c439 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot() argument
441 return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); in tomoyo_sb_pivotroot()
/openbmc/linux/tools/perf/
H A Dbuiltin-help.c333 const char *old_path = getenv("MANPATH"); in setup_man_path() local
339 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
/openbmc/u-boot/tools/binman/
H A Dentry.py107 old_path = sys.path
118 sys.path = old_path
/openbmc/linux/fs/smb/server/
H A Dvfs.h89 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path,
H A Dvfs.c683 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename() argument
687 struct dentry *old_child = old_path->dentry; in ksmbd_vfs_rename()
713 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename()
718 err = mnt_want_write(old_path->mnt); in ksmbd_vfs_rename()
773 rd.old_mnt_idmap = mnt_idmap(old_path->mnt), in ksmbd_vfs_rename()
790 mnt_drop_write(old_path->mnt); in ksmbd_vfs_rename()
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-inotify/
H A Dnew-test-inotify.patch401 os.mkdir(old_path)
416 os.rename(old_path, new_path)
418 + wd_old_path = get_wd(i.inotify, old_path)
/openbmc/linux/fs/smb/client/
H A Dcifsproto.h689 const char *old_path, in get_dfs_path() argument
693 return dfs_cache_find(xid, ses, nls_codepage, remap, old_path, in get_dfs_path()
/openbmc/qemu/block/
H A Dvvfat.c2675 char *old_path; in handle_renames_and_mkdirs() local
2680 old_path = mapping->path; in handle_renames_and_mkdirs()
2683 if (rename(old_path, mapping->path)) in handle_renames_and_mkdirs()
2688 int l2 = strlen(old_path); in handle_renames_and_mkdirs()
2725 g_free(old_path); in handle_renames_and_mkdirs()

12