Print this page
7711 SMF: Finish implementing support for degraded state
*** 20,29 ****
--- 20,30 ----
*/
/*
* 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,172 ****
/*
* 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
typedef enum {
ADMIN_EVENT_DEGRADED = 0x0,
ADMIN_EVENT_MAINT_OFF,
ADMIN_EVENT_MAINT_ON,
--- 163,173 ----
/*
* 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 8
typedef enum {
ADMIN_EVENT_DEGRADED = 0x0,
ADMIN_EVENT_MAINT_OFF,
ADMIN_EVENT_MAINT_ON,
*** 342,351 ****
--- 343,353 ----
/*
* Restarter transition outcomes
*/
typedef enum {
+ DEGRADE_REQUESTED,
MAINT_REQUESTED,
START_REQUESTED,
START_FAILED_REPEATEDLY,
START_FAILED_CONFIGURATION,
START_FAILED_FATAL,