]> git.ipfire.org Git - thirdparty/systemd.git/commit
automount: make sure the expire event is restarted after a daemon-reload (#4265)
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 4 Oct 2016 14:13:27 +0000 (16:13 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Oct 2016 14:13:27 +0000 (16:13 +0200)
commitc080fbce9ca4ac21d8dbb1c2d0e8c9205edfdbfb
treed03278ea286ef7fff14602b86241a1ceb2d1e742
parent1f4f4cf76c7482a3d64086f0c0d1e2e649183a29
automount: make sure the expire event is restarted after a daemon-reload (#4265)

If the corresponding mount unit is deserialized after the automount unit
then the expire event is set up in automount_trigger_notify(). However, if
the mount unit is deserialized first then the automount unit is still in
state AUTOMOUNT_DEAD and automount_trigger_notify() aborts without setting
up the expire event.
Explicitly call automount_start_expire() during coldplug to make sure that
the expire event is set up as necessary.

Fixes #4249.
src/core/automount.c