]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/mount.c
mount: flush out cycle state on DEAD→MOUNTED only, not the other way round
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Nov 2018 19:01:24 +0000 (20:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Dec 2018 16:35:32 +0000 (17:35 +0100)
commit7eba1463dedcae252a75b5aaddf9fb66d9fd8a38
tree50d19098c94f8f514976404fc5709aa91c4a079f
parentec88d1ea0591beccab97d9096fd3fd7b09bc823c
mount: flush out cycle state on DEAD→MOUNTED only, not the other way round

For services (and other units) we generally follow the rule that at the
beginning of each cycle, i.e. when the INACTIVE/FAILED state is left for
ACTIVATING/ACTIVE we flush out various state variables. Mount units
handled this differently so far when the unit state change was effected
outside of systemd: in that case these variables would be flushed out
when going back to INACTIVE/FAILED already.

Let's fix that, and flush out this state always during the activating
transition, not during the deactivating transition.
src/core/mount.c