It is not yet used, but we need something like that for the remove-hooks.
static char *path_to_last_complete_snapshot;
/** \sa \ref snap.h for details. */
static unsigned snapshot_creation_status;
+/** \sa \ref snap.h for details. */
+static unsigned snapshot_removal_status;
DEFINE_DSS_ERRLIST;
SCS_POST_HOOK_RUNNING,
};
+/** The state of snapshot removal. */
+enum {
+ /** No snapshot is currently being removed. */
+ SRS_READY,
+ /** The pre-removal hook has been started. */
+ SRS_PRE_HOOK_RUNNING,
+ /** The pre-remove hook failed, we're waiting to execute it again. */
+ SRS_PRE_HOOK_FAILURE,
+ /** The rm command is currently executing. */
+ SRS_RM_RUNNING,
+ /** The post-remove hook ist running. */
+ SRS_POST_HOOK_RUNNING,
+};
+
/**
* The status of a snapshot.
*