-/*
- * complete, not being deleted: 1204565370-1204565371.Sun_Mar_02_2008_14_33-Sun_Mar_02_2008_14_43
- * complete, being deleted: 1204565370-1204565371.being_deleted
- * incomplete, not being deleted: 1204565370-incomplete
- * incomplete, being deleted: 1204565370-incomplete.being_deleted
+/** 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.
+ *
+ * The snapshot directories come in four different flavours, depending
+ * on how the two staus flags are set. Examples:
+ *
+ * Complete, not being deleted: 1204565370-1204565371.Sun_Mar_02_2008_14_33-Sun_Mar_02_2008_14_43.
+ * Complete, being deleted: 1204565370-1204565371.being_deleted.
+ * Incomplete, not being deleted: 1204565370-incomplete.
+ * incomplete, being deleted: 1204565370-incomplete.being_deleted.