mirror of
https://github.com/systemd/systemd
synced 2026-03-31 12:14:57 +02:00
Compare commits
No commits in common. "d22139ad71d4fd425219d7d13898f1695fe1cf8f" and "d810cfcc5ae33acff274cbe46ad5551b49082747" have entirely different histories.
d22139ad71
...
d810cfcc5a
2
.github/labeler.yml
vendored
2
.github/labeler.yml
vendored
@ -228,7 +228,7 @@ selinux:
|
||||
- any-glob-to-any-file: '**/*selinux*'
|
||||
shell-completion:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'shell-completion/**'
|
||||
- any-glob-to-any-file: 'shell-completion/*'
|
||||
shell profile:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: 'profile.d/*'
|
||||
|
||||
@ -2607,9 +2607,9 @@ static void unit_emit_audit_stop(Unit *u, UnitActiveState state) {
|
||||
|
||||
static bool unit_process_job(Job *j, UnitActiveState ns, bool reload_success) {
|
||||
bool unexpected = false;
|
||||
JobResult result;
|
||||
|
||||
assert(j);
|
||||
assert(j->installed);
|
||||
|
||||
if (j->state == JOB_WAITING)
|
||||
/* So we reached a different state for this job. Let's see if we can run it now if it failed previously
|
||||
@ -2625,24 +2625,34 @@ static bool unit_process_job(Job *j, UnitActiveState ns, bool reload_success) {
|
||||
case JOB_VERIFY_ACTIVE:
|
||||
|
||||
if (UNIT_IS_ACTIVE_OR_RELOADING(ns))
|
||||
job_finish_and_invalidate(j, JOB_DONE, /* recursive = */ true, /* already = */ false);
|
||||
job_finish_and_invalidate(j, JOB_DONE, true, false);
|
||||
else if (j->state == JOB_RUNNING && ns != UNIT_ACTIVATING) {
|
||||
unexpected = true;
|
||||
|
||||
if (UNIT_IS_INACTIVE_OR_FAILED(ns))
|
||||
job_finish_and_invalidate(j, ns == UNIT_FAILED ? JOB_FAILED : JOB_DONE, /* recursive = */ true, /* already = */ false);
|
||||
if (UNIT_IS_INACTIVE_OR_FAILED(ns)) {
|
||||
if (ns == UNIT_FAILED)
|
||||
result = JOB_FAILED;
|
||||
else
|
||||
result = JOB_DONE;
|
||||
|
||||
job_finish_and_invalidate(j, result, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case JOB_RELOAD:
|
||||
case JOB_RELOAD_OR_START:
|
||||
case JOB_TRY_RELOAD:
|
||||
|
||||
if (j->state == JOB_RUNNING) {
|
||||
if (ns == UNIT_ACTIVE)
|
||||
job_finish_and_invalidate(j, reload_success ? JOB_DONE : JOB_FAILED, /* recursive = */ true, /* already = */ false);
|
||||
job_finish_and_invalidate(j, reload_success ? JOB_DONE : JOB_FAILED, true, false);
|
||||
else if (!IN_SET(ns, UNIT_ACTIVATING, UNIT_RELOADING, UNIT_REFRESHING)) {
|
||||
unexpected = true;
|
||||
job_finish_and_invalidate(j, reload_success ? JOB_CANCELED : JOB_FAILED, /* recursive = */ true, /* already = */ false);
|
||||
|
||||
if (UNIT_IS_INACTIVE_OR_FAILED(ns))
|
||||
job_finish_and_invalidate(j, ns == UNIT_FAILED ? JOB_FAILED : JOB_DONE, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2650,12 +2660,13 @@ static bool unit_process_job(Job *j, UnitActiveState ns, bool reload_success) {
|
||||
|
||||
case JOB_STOP:
|
||||
case JOB_RESTART:
|
||||
case JOB_TRY_RESTART:
|
||||
|
||||
if (UNIT_IS_INACTIVE_OR_FAILED(ns))
|
||||
job_finish_and_invalidate(j, JOB_DONE, /* recursive = */ true, /* already = */ false);
|
||||
job_finish_and_invalidate(j, JOB_DONE, true, false);
|
||||
else if (j->state == JOB_RUNNING && ns != UNIT_DEACTIVATING) {
|
||||
unexpected = true;
|
||||
job_finish_and_invalidate(j, JOB_FAILED, /* recursive = */ true, /* already = */ false);
|
||||
job_finish_and_invalidate(j, JOB_FAILED, true, false);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@ -2041,7 +2041,7 @@ uint64_t user_record_luks_sector_size(UserRecord *h) {
|
||||
return 512;
|
||||
|
||||
/* Allow up to 4K due to dm-crypt support and 4K alignment by the homed LUKS backend */
|
||||
return CLAMP(UINT64_C(1) << (63 - __builtin_clzll(h->luks_sector_size)), 512U, 4096U);
|
||||
return CLAMP(UINT64_C(1) << (63 - __builtin_clzl(h->luks_sector_size)), 512U, 4096U);
|
||||
}
|
||||
|
||||
const char* user_record_luks_pbkdf_hash_algorithm(UserRecord *h) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user