automount: rework propagation between automount and mount units
authorLennart Poettering <lennart@poettering.net>
Mon, 2 May 2016 14:51:45 +0000 (16:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 May 2016 14:51:45 +0000 (16:51 +0200)
commitfae03ed32a77934a5c39ed8e338ec6c7a75857a0
tree3b243e1410f2a08fd746f0c952d755af0a2a42a1
parentd14e3a0de913cd5ef52693a9466129820322cff3
automount: rework propagation between automount and mount units

Port the progagation logic to the generic Unit->trigger_notify() callback logic
in the unit vtable, that is called for a unit not only when the triggered unit
of it changes state but also when a job for that unit finishes. This, firstly
allows us to make the code a bit cleaner and more generic, but more
importantly, allows us to notice correctly when a mount job fails, and
propagate that back to autofs client processes.

Fixes: #2181
src/core/automount.c
src/core/automount.h
src/core/mount.c