Searched refs:ChunksAvailabilityState (Results 1 – 11 of 11) sorted by relevance
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/common/ |
H A D | chunks_availability_state_unittest.cc | 25 ChunksAvailabilityState s; in TEST() 27 s.addChunk(0, ChunksAvailabilityState::kSafe); in TEST() 28 s.addChunk(0, ChunksAvailabilityState::kSafe); in TEST() 29 s.addChunk(2, ChunksAvailabilityState::kSafe); in TEST() 30 s.addChunk(10, ChunksAvailabilityState::kSafe); in TEST() 34 s.addChunk(10, ChunksAvailabilityState::kLost); in TEST() 54 s.addChunk(10, ChunksAvailabilityState::kSafe); in TEST() 56 s.addChunk(10, ChunksAvailabilityState::kSafe); in TEST() 58 s.addChunk(11, ChunksAvailabilityState::kSafe); in TEST() 77 s.removeChunk(0, ChunksAvailabilityState::kSafe); in TEST() [all …]
|
H A D | chunk_copies_calculator.h | 216 ChunksAvailabilityState::State getState() const { in getState() 218 return ChunksAvailabilityState::kSafe; in getState() 221 return ChunksAvailabilityState::kEndangered; in getState() 223 return ChunksAvailabilityState::kLost; in getState() 248 return getState() != ChunksAvailabilityState::kLost; in isRecoveryPossible() 254 return getState() != ChunksAvailabilityState::kLost; in isWritingPossible()
|
H A D | chunk_copies_calculator_unittest.cc | 95 ASSERT_EQ(ChunksAvailabilityState::State::kEndangered, cccp.getState()); in TEST() 99 ASSERT_EQ(ChunksAvailabilityState::State::kSafe, cccp.getState()); in TEST() 104 ASSERT_EQ(ChunksAvailabilityState::State::kEndangered, cccp.getState()); in TEST() 109 ASSERT_EQ(ChunksAvailabilityState::State::kEndangered, cccp.getState()); in TEST() 113 ASSERT_EQ(ChunksAvailabilityState::State::kLost, cccp.getState()); in TEST() 121 ASSERT_EQ(ChunksAvailabilityState::State::kSafe, cccp.getState()); in TEST() 193 ASSERT_EQ(ChunksAvailabilityState::State::kSafe, cccp.getState()); in TEST() 204 ASSERT_EQ(ChunksAvailabilityState::State::kLost, cccp.getState()); in TEST() 210 ASSERT_EQ(ChunksAvailabilityState::State::kLost, cccp.getState()); in TEST() 251 ASSERT_EQ(ChunksAvailabilityState::State::kSafe, cccp.getState()); in TEST() [all …]
|
H A D | chunk_copies_calculator.cc | 335 assert(ChunksAvailabilityState::kSafe == 0 && ChunksAvailabilityState::kEndangered == 1 && in removePartBasicTest() 336 ChunksAvailabilityState::kLost == 2); in removePartBasicTest() 338 ChunksAvailabilityState::State slice_state; in removePartBasicTest() 341 slice_state = ChunksAvailabilityState::kSafe; in removePartBasicTest() 343 slice_state = ChunksAvailabilityState::kEndangered; in removePartBasicTest() 345 slice_state = ChunksAvailabilityState::kLost; in removePartBasicTest() 350 int can_remove_count = 2 * state_count[ChunksAvailabilityState::kSafe] + in removePartBasicTest() 351 state_count[ChunksAvailabilityState::kEndangered]; in removePartBasicTest() 375 if (state_count[ChunksAvailabilityState::kSafe] != 1) { in removePartBasicTest()
|
H A D | chunks_availability_state.h | 77 class ChunksAvailabilityState { 81 ChunksAvailabilityState() : data_() { in ChunksAvailabilityState() function
|
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/protocol/ |
H A D | matocl_unittest.cc | 141 ChunksAvailabilityState availIn, availOut; in TEST() 144 availIn.addChunk(0, ChunksAvailabilityState::kSafe); in TEST() 145 availIn.addChunk(1, ChunksAvailabilityState::kEndangered); in TEST() 146 availIn.addChunk(2, ChunksAvailabilityState::kEndangered); in TEST() 147 availIn.addChunk(3, ChunksAvailabilityState::kLost); in TEST() 148 availIn.addChunk(4, ChunksAvailabilityState::kSafe); in TEST()
|
H A D | matocl.h | 224 ChunksAvailabilityState, availability, in LIZARDFS_DEFINE_PACKET_SERIALIZATION()
|
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/admin/ |
H A D | chunk_health_command.cc | 81 ChunksAvailabilityState availability; in run() 105 void ChunksHealthCommand::printState(const ChunksAvailabilityState& state, bool isPorcelain) const { in printState()
|
H A D | chunk_health_command.h | 44 void printState(const ChunksAvailabilityState& state, bool isPorcelain) const;
|
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/master/ |
H A D | chunks.cc | 254 static ChunksAvailabilityState allChunksAvailability; 279 allAvailabilityState_ = ChunksAvailabilityState::kSafe; in clear() 400 && allAvailabilityState_ == ChunksAvailabilityState::kEndangered in updateStats() 410 return allAvailabilityState_ == ChunksAvailabilityState::kSafe; in isSafe() 414 return allAvailabilityState_ == ChunksAvailabilityState::kEndangered; in isEndangered() 418 return allAvailabilityState_ == ChunksAvailabilityState::kLost; in isLost() 458 ChunksAvailabilityState::State allCopiesState() const { in allCopiesState() 459 return static_cast<ChunksAvailabilityState::State>(allAvailabilityState_); in allCopiesState() 502 ChunksAvailabilityState Chunk::allChunksAvailability; 1393 const ChunksAvailabilityState& chunk_get_availability_state() { in chunk_get_availability_state() [all …]
|
H A D | chunks.h | 63 const ChunksAvailabilityState& chunk_get_availability_state();
|