summaryrefslogtreecommitdiff
path: root/automount.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-10 17:53:17 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-10 18:00:34 +0200
commite537352b9bfffe6f6286483bff2c7601c78407e3 (patch)
treebe1a46883f8a1bc6b666bd680adda2d309979c15 /automount.h
parent108736d0d34d7b74a61a6ac7b99d4d4fec81ce09 (diff)
mount: implement mounting properly
This also includes code that writes utmp/wtmp records when applicable, making use the mount infrastructure to detct when those files are accessible. Finally, this also introduces a --dump-configuration-items switch.
Diffstat (limited to 'automount.h')
-rw-r--r--automount.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/automount.h b/automount.h
index e7d778c7bb..daa3686fcb 100644
--- a/automount.h
+++ b/automount.h
@@ -28,34 +28,17 @@ typedef struct Automount Automount;
typedef enum AutomountState {
AUTOMOUNT_DEAD,
- AUTOMOUNT_START_PRE,
- AUTOMOUNT_START_POST,
AUTOMOUNT_WAITING,
AUTOMOUNT_RUNNING,
- AUTOMOUNT_STOP_PRE,
- AUTOMOUNT_STOP_POST,
AUTOMOUNT_MAINTAINANCE,
- _AUTOMOUNT_STATE_MAX
+ _AUTOMOUNT_STATE_MAX,
+ _AUTOMOUNT_STATE_INVALID = -1
} AutomountState;
-typedef enum AutomountExecCommand {
- AUTOMOUNT_EXEC_START_PRE,
- AUTOMOUNT_EXEC_START_POST,
- AUTOMOUNT_EXEC_STOP_PRE,
- AUTOMOUNT_EXEC_STOP_POST,
- _AUTOMOUNT_EXEC_MAX
-} AutomountExecCommand;
-
struct Automount {
Meta meta;
AutomountState state;
- char *path;
-
- ExecCommand* exec_command[_AUTOMOUNT_EXEC_MAX];
- ExecContext exec_context;
-
- pid_t contol_pid;
Mount *mount;
};