Home
last modified time | relevance | path

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

12

/openbmc/bmcweb/scripts/
H A Dgenerate_schema_collections.py165 new_path = path + "/{" + member_id + str(prev_count + 1) + "}"
167 new_path = path + "/{" + member_id + "}"
183 new_path = path + "/" + nav_name
188 top_collections.add(new_path)
197 new_path = path + "/" + nav_name
207 if new_path == "/redfish/v1/Tasks":
213 if new_path in seen_paths:
214 seen_paths.remove(new_path)
215 new_path = new_path2
218 if new_path in seen_paths:
[all …]
/openbmc/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
/openbmc/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 …]
/openbmc/openbmc/poky/scripts/
H A Drelocate_sdk.py172 new_path = old_prefix.sub(new_prefix, path)
173 new_path = new_path.rstrip(b("\0"))
174 if (len(new_path) >= 4096):
176 % (elf_file_name, len(new_path)))
179 new_path += b("\0") * (4096 - len(new_path))
183 f.write(new_path)
194 new_path = old_prefix.sub(new_prefix, path)
195 sysdirs += new_path + b("\0")
198 sysdirslen += struct.pack("<L", len(new_path))
200 sysdirslen += struct.pack("<Q", len(new_path))
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A D__init__.py29 new_path = ''
39 new_path = new_path + p + ':'
41 new_path = new_path[:-1]
42 return new_path
/openbmc/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()
/openbmc/linux/arch/um/os-Linux/
H A 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()
/openbmc/linux/fs/
H A 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 idmap = mnt_idmap(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, idmap, new_path.dentry->d_inode, in init_link()
195 done_path_create(&new_path, new_dentry); in init_link()
H A Dnamei.c4626 struct path old_path, new_path; in do_linkat() local
4652 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat()
4659 if (old_path.mnt != new_path.mnt) in do_linkat()
4661 idmap = mnt_idmap(new_path.mnt); in do_linkat()
4665 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4668 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in do_linkat()
4671 done_path_create(&new_path, new_dentry); in do_linkat()
4917 struct path old_path, new_path; in do_renameat2() local
4941 error = filename_parentat(newdfd, to, lookup_flags, &new_path, &new_last, in do_renameat2()
4947 if (old_path.mnt != new_path.mnt) in do_renameat2()
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-inotify/
H A Dnew-test-inotify.patch399 new_path = os.path.join(path, 'new_folder')
416 os.rename(old_path, new_path)
427 …dapters._INOTIFY_EVENT(wd=wd_old_path, mask=2048, cookie=0, len=0), ['IN_MOVE_SELF'], new_path, '')
434 with open(os.path.join(new_path, 'old_filename'), 'w'):
439 …dapters._INOTIFY_EVENT(wd=3, mask=256, cookie=0, len=16), ['IN_CREATE'], new_path, 'old_filename'),
440 …y.adapters._INOTIFY_EVENT(wd=3, mask=32, cookie=0, len=16), ['IN_OPEN'], new_path, 'old_filename'),
441 …ters._INOTIFY_EVENT(wd=3, mask=8, cookie=0, len=16), ['IN_CLOSE_WRITE'], new_path, 'old_filename'),
442 …NOTIFY_EVENT(wd=wd_old_path, mask=256, cookie=0, len=16), ['IN_CREATE'], new_path, 'old_filename'),
443 …._INOTIFY_EVENT(wd=wd_old_path, mask=32, cookie=0, len=16), ['IN_OPEN'], new_path, 'old_filename'),
444 …IFY_EVENT(wd=wd_old_path, mask=8, cookie=0, len=16), ['IN_CLOSE_WRITE'], new_path, 'old_filename'),
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dgen_misc.py147 def add_path(new_path, path, position=0): argument
167 new_path = new_path.rstrip("/")
168 if new_path not in path_list:
169 path_list.insert(int(position), new_path)
/openbmc/linux/fs/vboxsf/
H A Ddir.c402 struct shfl_string *old_path, *new_path; in vboxsf_dir_rename() local
412 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename()
413 if (IS_ERR(new_path)) { in vboxsf_dir_rename()
414 err = PTR_ERR(new_path); in vboxsf_dir_rename()
421 err = vboxsf_rename(sbi->root, old_path, new_path, shfl_flags); in vboxsf_dir_rename()
428 __putname(new_path); in vboxsf_dir_rename()
H A 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()
H A Dvfsmod.h140 int vboxsf_symlink(u32 root, struct shfl_string *new_path,
/openbmc/linux/security/apparmor/
H A Dmount.c664 const struct path *new_path, in build_pivotroot() argument
678 AA_BUG(!new_path); in build_pivotroot()
690 error = aa_path_name(new_path, path_flags(profile, new_path), in build_pivotroot()
720 const struct path *new_path) in aa_pivotroot() argument
729 AA_BUG(!new_path); in aa_pivotroot()
737 build_pivotroot(subj_cred, profile, new_path, in aa_pivotroot()
H A Dlsm.c391 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename() local
407 label, &new_path, 0, in apparmor_path_rename()
426 label, &new_path, in apparmor_path_rename()
650 const struct path *new_path) in apparmor_sb_pivotroot() argument
657 error = aa_pivotroot(current_cred(), label, old_path, new_path); in apparmor_sb_pivotroot()
/openbmc/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()
/openbmc/openbmc/poky/meta/lib/oe/
H A Dcachedpath.py149 new_path = os.path.join(top, name)
150 if followlinks or not self.islink(new_path):
151 for x in self.walk(new_path, topdown, onerror, followlinks):
/openbmc/linux/tools/perf/util/
H A Dprobe-finder.c2032 const char *sbuild_id, char **new_path) in get_source_from_debuginfod() argument
2042 0, p, new_path); in get_source_from_debuginfod()
2052 pr_debug("Got a source %s\n", *new_path); in get_source_from_debuginfod()
2059 char **new_path __maybe_unused) in get_source_from_debuginfod()
2071 const char *comp_dir, char **new_path) in find_source_path() argument
2076 if (!get_source_from_debuginfod(raw_path, sbuild_id, new_path)) in find_source_path()
2086 *new_path = strdup(raw_path); in find_source_path()
2087 return *new_path ? 0 : -ENOMEM; in find_source_path()
2093 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in find_source_path()
2094 if (!*new_path) in find_source_path()
[all …]
H A Dprobe-finder.h65 const char *comp_dir, char **new_path);
/openbmc/linux/security/apparmor/include/
H A Dmount.h58 const struct path *new_path);
/openbmc/linux/fs/ocfs2/
H A Dioctl.c898 const char __user *new_path; in ocfs2_ioctl() local
904 new_path = (const char __user *)(unsigned long)args.new_path; in ocfs2_ioctl()
907 return ocfs2_reflink_ioctl(inode, old_path, new_path, preserve); in ocfs2_ioctl()
975 compat_ptr(args.new_path), preserve); in ocfs2_compat_ioctl()
H A Docfs2_ioctl.h56 __u64 new_path; member
/openbmc/linux/fs/smb/server/
H A Dvfs.c688 struct path new_path; in ksmbd_vfs_rename() local
708 &new_path, &new_last, &new_type, in ksmbd_vfs_rename()
713 if (old_path->mnt != new_path.mnt) { in ksmbd_vfs_rename()
722 trap = lock_rename_child(old_child, new_path.dentry); in ksmbd_vfs_rename()
741 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_dir = new_path.dentry->d_inode, in ksmbd_vfs_rename()
789 unlock_rename(old_parent, new_path.dentry); in ksmbd_vfs_rename()
792 path_put(&new_path); in ksmbd_vfs_rename()
/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()

12