Add replicated pool support to OSD logic

...in theory :-D now it needs some testing
This commit is contained in:
Vitaliy Filippov
2020-09-05 01:42:11 +03:00
parent 168cc2c803
commit 4f9b5286a0
11 changed files with 195 additions and 83 deletions
+5 -3
View File
@@ -1,8 +1,8 @@
#include "pg_states.h"
const int pg_state_bit_count = 13;
const int pg_state_bit_count = 14;
const int pg_state_bits[13] = {
const int pg_state_bits[14] = {
PG_STARTING,
PG_PEERING,
PG_INCOMPLETE,
@@ -14,10 +14,11 @@ const int pg_state_bits[13] = {
PG_HAS_DEGRADED,
PG_HAS_MISPLACED,
PG_HAS_UNCLEAN,
PG_HAS_INVALID,
PG_LEFT_ON_DEAD,
};
const char *pg_state_names[13] = {
const char *pg_state_names[14] = {
"starting",
"peering",
"incomplete",
@@ -29,5 +30,6 @@ const char *pg_state_names[13] = {
"has_degraded",
"has_misplaced",
"has_unclean",
"has_invalid",
"left_on_dead",
};