summaryrefslogtreecommitdiff
path: root/src/mount.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-02-03 03:10:56 +0100
committerLennart Poettering <lennart@poettering.net>2012-02-03 05:06:03 +0100
commit9d2f51788e17355cdc287cc6d23169bef363d72e (patch)
tree8a8e6a44323aaf54881cf28cf7f2599fdec6bbff /src/mount.h
parentcfc4eb4cbaa3434fac145cbabbd51c5f41bd20a6 (diff)
mount: replace failure boolean by enum
Diffstat (limited to 'src/mount.h')
-rw-r--r--src/mount.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mount.h b/src/mount.h
index 730c4c273f..9318444249 100644
--- a/src/mount.h
+++ b/src/mount.h
@@ -59,6 +59,17 @@ typedef struct MountParameters {
int passno;
} MountParameters;
+typedef enum MountResult {
+ MOUNT_SUCCESS,
+ MOUNT_FAILURE_RESOURCES,
+ MOUNT_FAILURE_TIMEOUT,
+ MOUNT_FAILURE_EXIT_CODE,
+ MOUNT_FAILURE_SIGNAL,
+ MOUNT_FAILURE_CORE_DUMP,
+ _MOUNT_RESULT_MAX,
+ _MOUNT_RESULT_INVALID = -1
+} MountResult;
+
struct Mount {
Unit meta;
@@ -78,8 +89,8 @@ struct Mount {
bool just_mounted:1;
bool just_changed:1;
- bool failure:1;
- bool reload_failure:1;
+ MountResult result;
+ MountResult reload_result;
mode_t directory_mode;
@@ -107,4 +118,7 @@ MountState mount_state_from_string(const char *s);
const char* mount_exec_command_to_string(MountExecCommand i);
MountExecCommand mount_exec_command_from_string(const char *s);
+const char* mount_result_to_string(MountResult i);
+MountResult mount_result_from_string(const char *s);
+
#endif