Lines Matching refs:changes

2158                 UnitFileChange *changes,  in install_error()  argument
2165 switch (changes[i].type_or_errno) { in install_error()
2171 if (changes[i].source) in install_error()
2174 changes[i].path, changes[i].source); in install_error()
2178 changes[i].path); in install_error()
2183 "Unit file %s is masked.", changes[i].path); in install_error()
2188 … "Unit %s is transient or generated.", changes[i].path); in install_error()
2194 changes[i].path); in install_error()
2200 changes[i].path); in install_error()
2205 "Unit file %s does not exist.", changes[i].path); in install_error()
2209 assert(changes[i].type_or_errno < 0); /* other errors */ in install_error()
2210 … r = sd_bus_error_set_errnof(error, changes[i].type_or_errno, "File %s: %m", changes[i].path); in install_error()
2217 unit_file_changes_free(changes, n_changes); in install_error()
2225 UnitFileChange *changes, in reply_unit_file_changes_and_free() argument
2233 if (unit_file_changes_have_modification(changes, n_changes)) { in reply_unit_file_changes_and_free()
2255 if (changes[i].type_or_errno < 0) { in reply_unit_file_changes_and_free()
2262 unit_file_change_type_to_string(changes[i].type_or_errno), in reply_unit_file_changes_and_free()
2263 changes[i].path, in reply_unit_file_changes_and_free()
2264 changes[i].source); in reply_unit_file_changes_and_free()
2274 return install_error(error, 0, changes, n_changes); in reply_unit_file_changes_and_free()
2280 unit_file_changes_free(changes, n_changes); in reply_unit_file_changes_and_free()
2284 unit_file_changes_free(changes, n_changes); in reply_unit_file_changes_and_free()
2291 …itFileFlags flags, const char *root_dir, char *files[], UnitFileChange **changes, size_t *n_change… in method_enable_unit_files_generic() argument
2296 UnitFileChange *changes = NULL; in method_enable_unit_files_generic() local
2332 r = call(m->unit_file_scope, flags, NULL, l, &changes, &n_changes); in method_enable_unit_files_generic()
2334 return install_error(error, r, changes, n_changes); in method_enable_unit_files_generic()
2336 …return reply_unit_file_changes_and_free(m, message, carries_install_info ? r : -1, changes, n_chan… in method_enable_unit_files_generic()
2355 …nitFileFlags flags, const char *root_dir, char **files, UnitFileChange **changes, size_t *n_change… in unit_file_preset_without_mode() argument
2356 … return unit_file_preset(scope, flags, root_dir, files, UNIT_FILE_PRESET_FULL, changes, n_changes); in unit_file_preset_without_mode()
2370 UnitFileChange *changes = NULL; in method_preset_unit_files_with_mode() local
2405 r = unit_file_preset(m->unit_file_scope, flags, NULL, l, preset_mode, &changes, &n_changes); in method_preset_unit_files_with_mode()
2407 return install_error(error, r, changes, n_changes); in method_preset_unit_files_with_mode()
2409 return reply_unit_file_changes_and_free(m, message, r, changes, n_changes, error); in method_preset_unit_files_with_mode()
2415 …itFileFlags flags, const char *root_dir, char *files[], UnitFileChange **changes, size_t *n_change… in method_disable_unit_files_generic() argument
2419 UnitFileChange *changes = NULL; in method_disable_unit_files_generic() local
2456 r = call(m->unit_file_scope, flags, NULL, l, &changes, &n_changes); in method_disable_unit_files_generic()
2458 return install_error(error, r, changes, n_changes); in method_disable_unit_files_generic()
2460 return reply_unit_file_changes_and_free(m, message, -1, changes, n_changes, error); in method_disable_unit_files_generic()
2477 UnitFileChange *changes = NULL; in method_revert_unit_files() local
2495 r = unit_file_revert(m->unit_file_scope, NULL, l, &changes, &n_changes); in method_revert_unit_files()
2497 return install_error(error, r, changes, n_changes); in method_revert_unit_files()
2499 return reply_unit_file_changes_and_free(m, message, -1, changes, n_changes, error); in method_revert_unit_files()
2503 UnitFileChange *changes = NULL; in method_set_default_target() local
2526 …ile_set_default(m->unit_file_scope, force ? UNIT_FILE_FORCE : 0, NULL, name, &changes, &n_changes); in method_set_default_target()
2528 return install_error(error, r, changes, n_changes); in method_set_default_target()
2530 return reply_unit_file_changes_and_free(m, message, -1, changes, n_changes, error); in method_set_default_target()
2534 UnitFileChange *changes = NULL; in method_preset_all_unit_files() local
2569 … r = unit_file_preset_all(m->unit_file_scope, flags, NULL, preset_mode, &changes, &n_changes); in method_preset_all_unit_files()
2571 return install_error(error, r, changes, n_changes); in method_preset_all_unit_files()
2573 return reply_unit_file_changes_and_free(m, message, -1, changes, n_changes, error); in method_preset_all_unit_files()
2579 UnitFileChange *changes = NULL; in method_add_dependency_unit_files() local
2609 …r = unit_file_add_dependency(m->unit_file_scope, flags, NULL, l, target, dep, &changes, &n_changes… in method_add_dependency_unit_files()
2611 return install_error(error, r, changes, n_changes); in method_add_dependency_unit_files()
2613 return reply_unit_file_changes_and_free(m, message, -1, changes, n_changes, error); in method_add_dependency_unit_files()
2618 UnitFileChange *changes = NULL; in method_get_unit_file_links() local
2641 r = unit_file_disable(LOOKUP_SCOPE_SYSTEM, flags, NULL, p, &changes, &n_changes); in method_get_unit_file_links()
2646 if (changes[i].type_or_errno == UNIT_FILE_UNLINK) { in method_get_unit_file_links()
2647 r = sd_bus_message_append(reply, "s", changes[i].path); in method_get_unit_file_links()
3154 SD_BUS_RESULT("b", carries_install_info, "a(sss)", changes),
3159 SD_BUS_RESULT("a(sss)", changes),
3164 SD_BUS_RESULT("b", carries_install_info, "a(sss)", changes),
3169 SD_BUS_RESULT("a(sss)", changes),
3174 SD_BUS_RESULT("b", carries_install_info, "a(sss)", changes),
3179 SD_BUS_RESULT("a(sss)", changes),
3184 SD_BUS_RESULT("b", carries_install_info, "a(sss)", changes),
3189 SD_BUS_RESULT("b", carries_install_info, "a(sss)", changes),
3194 SD_BUS_RESULT("a(sss)", changes),
3199 SD_BUS_RESULT("a(sss)", changes),
3204 SD_BUS_RESULT("a(sss)", changes),
3209 SD_BUS_RESULT("a(sss)", changes),
3219 SD_BUS_RESULT("a(sss)", changes),
3224 SD_BUS_RESULT("a(sss)", changes),