X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=snap.h;fp=snap.h;h=7ac951fc313adb9f0867bc90463d4773f215adb9;hb=56cb4048819e7c6ed00cd5723b823f3bb92c1d61;hp=afac5e9554ab6eae991e796bbf386bddb82d8540;hpb=551ae2318396d9f1ee0a00bed2b94f0b9c9e9c55;p=dss.git diff --git a/snap.h b/snap.h index afac5e9..7ac951f 100644 --- a/snap.h +++ b/snap.h @@ -22,6 +22,20 @@ enum { 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. *