X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fmount.h;h=9318444249c33e5838dd0c01551eae35140ac212;hb=a985a8f5477330f79313436a6582154b08192612;hp=8d8c738b07937cd5786e389fe226802e190292f3;hpb=fdf20a316035779bbec469e11d73c7544acbf30f;p=elogind.git diff --git a/src/mount.h b/src/mount.h index 8d8c738b0..931844424 100644 --- a/src/mount.h +++ b/src/mount.h @@ -56,10 +56,22 @@ typedef struct MountParameters { char *what; char *options; char *fstype; + 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 { - Meta meta; + Unit meta; char *where; @@ -77,7 +89,8 @@ struct Mount { bool just_mounted:1; bool just_changed:1; - bool failure:1; + MountResult result; + MountResult reload_result; mode_t directory_mode; @@ -105,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