// Copyright (c) Vitaliy Filippov, 2019+ // License: VNPL-1.1 or GNU GPL-2.0+ (see README.md for details) #include "pg_states.h" const int pg_state_bit_count = 16; const int pg_state_bits[16] = { PG_STARTING, PG_PEERING, PG_PEERED, PG_INCOMPLETE, PG_ACTIVE, PG_REPEERING, PG_STOPPING, PG_OFFLINE, PG_DEGRADED, PG_HAS_INCOMPLETE, PG_HAS_DEGRADED, PG_HAS_MISPLACED, PG_HAS_UNCLEAN, PG_HAS_INVALID, PG_LEFT_ON_DEAD, }; const char *pg_state_names[16] = { "starting", "peering", "peered", "incomplete", "active", "repeering", "stopping", "offline", "degraded", "has_incomplete", "has_degraded", "has_misplaced", "has_unclean", "has_invalid", "left_on_dead", };