]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - automount.c
systemctl: show sub state along active state
[thirdparty/systemd.git] / automount.c
index c6ce25d8b254eba93bcc815437bb3e798c906fc0..1192949d837f0996af79e134bb8db2875cfbf3f1 100644 (file)
@@ -93,6 +93,12 @@ static UnitActiveState automount_active_state(Unit *u) {
         return state_translation_table[AUTOMOUNT(u)->state];
 }
 
+static const char *automount_sub_state_to_string(Unit *u) {
+        assert(u);
+
+        return state_string_table[AUTOMOUNT(u)->state];
+}
+
 const UnitVTable automount_vtable = {
         .suffix = ".mount",
 
@@ -104,5 +110,6 @@ const UnitVTable automount_vtable = {
 
         .dump = automount_dump,
 
-        .active_state = automount_active_state
+        .active_state = automount_active_state,
+        .sub_state_to_string = automount_sub_state_to_string
 };