chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
machine-id: don't delete runtime machine-id, and place it in /run
[elogind.git]
/
src
/
mount.h
diff --git
a/src/mount.h
b/src/mount.h
index 954058ceb5465ae6d0e9c9fd0764a077f2fd2a04..9318444249c33e5838dd0c01551eae35140ac212 100644
(file)
--- a/
src/mount.h
+++ b/
src/mount.h
@@
-59,8
+59,19
@@
typedef struct MountParameters {
int passno;
} 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 {
struct Mount {
-
Meta
meta;
+
Unit
meta;
char *where;
char *where;
@@
-78,7
+89,8
@@
struct Mount {
bool just_mounted:1;
bool just_changed:1;
bool just_mounted:1;
bool just_changed:1;
- bool failure:1;
+ MountResult result;
+ MountResult reload_result;
mode_t directory_mode;
mode_t directory_mode;
@@
-106,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_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
#endif