Lines Matching refs:where
170 const char *where, in extract_now() argument
195 assert(where); in extract_now()
200 r = open_extension_release(where, image_name, &os_release_path, &os_release_fd); in extract_now()
203 r = open_os_release(where, &os_release_path, &os_release_fd); in extract_now()
234 r = lookup_paths_init(&paths, LOOKUP_SCOPE_SYSTEM, LOOKUP_PATHS_SPLIT_USR, where); in extract_now()
246 r = chase_symlinks_and_opendir(*i, where, 0, &resolved, &d); in extract_now()
297 m = portable_metadata_new(de->d_name, where, con, fd); in extract_now()
1075 const char *where; in attached_path() local
1080 where = paths->runtime_attached; in attached_path()
1082 where = paths->persistent_attached; in attached_path()
1084 assert(where); in attached_path()
1085 return where; in attached_path()
1101 const char *where, *path; in attach_unit_file() local
1109 where = attached_path(paths, flags); in attach_unit_file()
1111 (void) mkdir_parents(where, 0755); in attach_unit_file()
1112 if (mkdir(where, 0755) < 0) { in attach_unit_file()
1116 (void) portable_changes_add(changes, n_changes, PORTABLE_MKDIR, where, NULL); in attach_unit_file()
1118 path = prefix_roota(where, m->name); in attach_unit_file()
1188 const char *fn, *where; in image_symlink() local
1197 where = "/run/portables/"; in image_symlink()
1199 where = "/etc/portables/"; in image_symlink()
1201 joined = strjoin(where, fn); in image_symlink()
1470 const char *where, in test_chroot_dropin() argument
1483 assert(where); in test_chroot_dropin()
1494 return log_debug_errno(errno, "Failed to open %s/%s: %m", where, p); in test_chroot_dropin()
1503 return log_debug_errno(r, "Failed to read from %s/%s: %m", where, p); in test_chroot_dropin()
1541 const char *where, *item; in portable_detach() local
1551 where = attached_path(&paths, flags); in portable_detach()
1553 d = opendir(where); in portable_detach()
1558 return log_debug_errno(errno, "Failed to open '%s' directory: %m", where); in portable_detach()
1561 …ACH_DIRENT(de, d, return log_debug_errno(errno, "Failed to enumerate '%s' directory: %m", where)) { in portable_detach()
1575 … r = test_chroot_dropin(d, where, de->d_name, name_or_path, extension_image_paths, &marker); in portable_detach()
1621 log_debug_errno(errno, "Can't remove unit file %s/%s: %m", where, item); in portable_detach()
1626 … portable_changes_add_with_prefix(changes, n_changes, PORTABLE_UNLINK, where, item, NULL); in portable_detach()
1636 … log_debug_errno(errno, "Can't remove drop-in %s/%s: %m", where, dropin); in portable_detach()
1641 … portable_changes_add_with_prefix(changes, n_changes, PORTABLE_UNLINK, where, dropin, NULL); in portable_detach()
1649 … log_debug_errno(errno, "Can't remove drop-in directory %s/%s: %m", where, md); in portable_detach()
1654 … portable_changes_add_with_prefix(changes, n_changes, PORTABLE_UNLINK, where, md, NULL); in portable_detach()
1688 if (rmdir(where) >= 0) in portable_detach()
1689 portable_changes_add(changes, n_changes, PORTABLE_UNLINK, where, NULL); in portable_detach()
1719 const char *where; in portable_get_state_internal() local
1729 where = attached_path(&paths, flags); in portable_get_state_internal()
1731 d = opendir(where); in portable_get_state_internal()
1739 return log_debug_errno(errno, "Failed to open '%s' directory: %m", where); in portable_get_state_internal()
1742 …ACH_DIRENT(de, d, return log_debug_errno(errno, "Failed to enumerate '%s' directory: %m", where)) { in portable_get_state_internal()
1755 … r = test_chroot_dropin(d, where, de->d_name, name_or_path, extension_image_paths, NULL); in portable_get_state_internal()