Lines Matching refs:n_changes
821 size_t *n_changes, in portable_changes_add() argument
830 assert(!changes == !n_changes); in portable_changes_add()
840 c = reallocarray(*changes, *n_changes + 1, sizeof(PortableChange)); in portable_changes_add()
859 c[(*n_changes)++] = (PortableChange) { in portable_changes_add()
870 size_t *n_changes, in portable_changes_add_with_prefix() argument
877 assert(!changes == !n_changes); in portable_changes_add_with_prefix()
889 return portable_changes_add(changes, n_changes, type_or_errno, path, source); in portable_changes_add_with_prefix()
892 void portable_changes_free(PortableChange *changes, size_t n_changes) { in portable_changes_free() argument
895 assert(changes || n_changes == 0); in portable_changes_free()
897 for (i = 0; i < n_changes; i++) { in portable_changes_free()
956 size_t *n_changes) { in install_chroot_dropin() argument
1011 (void) portable_changes_add(changes, n_changes, PORTABLE_WRITE, dropin, NULL); in install_chroot_dropin()
1027 size_t *n_changes) { in install_profile_dropin() argument
1058 (void) portable_changes_add(changes, n_changes, PORTABLE_COPY, dropin, from); in install_profile_dropin()
1065 (void) portable_changes_add(changes, n_changes, PORTABLE_SYMLINK, dropin, from); in install_profile_dropin()
1097 size_t *n_changes) { in attach_unit_file() argument
1116 (void) portable_changes_add(changes, n_changes, PORTABLE_MKDIR, where, NULL); in attach_unit_file()
1127 (void) portable_changes_add(changes, n_changes, PORTABLE_MKDIR, dropin_dir, NULL); in attach_unit_file()
1133 …root_dropin(image_path, type, extension_images, m, dropin_dir, &chroot_dropin, changes, n_changes); in attach_unit_file()
1137 …all_profile_dropin(image_path, m, dropin_dir, profile, flags, &profile_dropin, changes, n_changes); in attach_unit_file()
1146 (void) portable_changes_add(changes, n_changes, PORTABLE_SYMLINK, path, m->source); in attach_unit_file()
1172 (void) portable_changes_add(changes, n_changes, PORTABLE_COPY, path, m->source); in attach_unit_file()
1213 size_t *n_changes) { in install_image_symlink() argument
1235 (void) portable_changes_add(changes, n_changes, PORTABLE_SYMLINK, sl, image_path); in install_image_symlink()
1244 size_t *n_changes) { in install_image_and_extensions_symlinks() argument
1252 r = install_image_symlink(ext->path, flags, changes, n_changes); in install_image_and_extensions_symlinks()
1257 r = install_image_symlink(image->path, flags, changes, n_changes); in install_image_and_extensions_symlinks()
1282 size_t *n_changes, in portable_attach() argument
1368 item, profile, flags, changes, n_changes); in portable_attach()
1375 … (void) install_image_and_extensions_symlinks(image, extension_images, flags, changes, n_changes); in portable_attach()
1534 size_t *n_changes, in portable_detach() argument
1626 … portable_changes_add_with_prefix(changes, n_changes, PORTABLE_UNLINK, where, item, NULL); in portable_detach()
1641 … portable_changes_add_with_prefix(changes, n_changes, PORTABLE_UNLINK, where, dropin, NULL); in portable_detach()
1654 … portable_changes_add_with_prefix(changes, n_changes, PORTABLE_UNLINK, where, md, NULL); in portable_detach()
1684 portable_changes_add(changes, n_changes, PORTABLE_UNLINK, sl, NULL); in portable_detach()
1689 portable_changes_add(changes, n_changes, PORTABLE_UNLINK, where, NULL); in portable_detach()