Print this page
7711 SMF: Finish implementing support for degraded state

@@ -20,10 +20,11 @@
  */
 
 /*
  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2015, Joyent, Inc. All rights reserved.
+ * Copyright 2017 RackTop Systems.
  */
 
 #ifndef _STARTD_H
 #define _STARTD_H
 

@@ -162,11 +163,11 @@
 /*
  * Definitions for administrative actions.
  *   Note that the ordering in admin_action_t, admin_actions, and admin_events
  *   must match.  admin_actions and admin_events are defined in startd.c.
  */
-#define NACTIONS                        6
+#define NACTIONS                        8
 
 typedef enum {
         ADMIN_EVENT_DEGRADED = 0x0,
         ADMIN_EVENT_MAINT_OFF,
         ADMIN_EVENT_MAINT_ON,

@@ -342,10 +343,11 @@
 
 /*
  * Restarter transition outcomes
  */
 typedef enum {
+        DEGRADE_REQUESTED,
         MAINT_REQUESTED,
         START_REQUESTED,
         START_FAILED_REPEATEDLY,
         START_FAILED_CONFIGURATION,
         START_FAILED_FATAL,