summaryrefslogtreecommitdiff
path: root/src/core/automount.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-02 16:51:45 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-02 16:51:45 +0200
commitfae03ed32a77934a5c39ed8e338ec6c7a75857a0 (patch)
tree3b243e1410f2a08fd746f0c952d755af0a2a42a1 /src/core/automount.h
parentd14e3a0de913cd5ef52693a9466129820322cff3 (diff)
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
Diffstat (limited to 'src/core/automount.h')
-rw-r--r--src/core/automount.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/automount.h b/src/core/automount.h
index 414717e5b8..76a201178e 100644
--- a/src/core/automount.h
+++ b/src/core/automount.h
@@ -27,6 +27,7 @@ typedef enum AutomountResult {
AUTOMOUNT_SUCCESS,
AUTOMOUNT_FAILURE_RESOURCES,
AUTOMOUNT_FAILURE_START_LIMIT_HIT,
+ AUTOMOUNT_FAILURE_MOUNT_START_LIMIT_HIT,
_AUTOMOUNT_RESULT_MAX,
_AUTOMOUNT_RESULT_INVALID = -1
} AutomountResult;
@@ -54,7 +55,5 @@ struct Automount {
extern const UnitVTable automount_vtable;
-int automount_update_mount(Automount *a, MountState old_state, MountState state);
-
const char* automount_result_to_string(AutomountResult i) _const_;
AutomountResult automount_result_from_string(const char *s) _pure_;