]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add a new unit method "catchup()"
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Jun 2018 14:53:22 +0000 (16:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Jun 2018 13:28:50 +0000 (15:28 +0200)
commitf0831ed2a03fcef582660be1c3b1a9f3e267e656
treec5aebbc37b814ee9b4014a0aacf630b52a3f2397
parent62b0cbb358a1f48261efbbf0fb6b8fc704645491
core: add a new unit method "catchup()"

This is very similar to the existing unit method coldplug() but is
called a bit later. The idea is that that coldplug() restores the unit
state from before any prior reload/restart, i.e. puts the deserialized
state in effect. The catchup() call is then called a bit later, to
catch up with the system state for which we missed notifications while
we were reloading. This is only really useful for mount, swap and device
mount points were we should be careful to generate all missing unit
state change events (i.e. call unit_notify() appropriately) for
everything that happened while we were reloading.
src/core/manager.c
src/core/unit.c
src/core/unit.h