Home
last modified time | relevance | path

Searched refs:ChunksAvailabilityState (Results 1 – 11 of 11) sorted by relevance

/dports/sysutils/lizardfs/lizardfs-3.12.0/src/common/
H A Dchunks_availability_state_unittest.cc25 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 Dchunk_copies_calculator.h216 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 Dchunk_copies_calculator_unittest.cc95 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 Dchunk_copies_calculator.cc335 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 Dchunks_availability_state.h77 class ChunksAvailabilityState {
81 ChunksAvailabilityState() : data_() { in ChunksAvailabilityState() function
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/protocol/
H A Dmatocl_unittest.cc141 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 Dmatocl.h224 ChunksAvailabilityState, availability, in LIZARDFS_DEFINE_PACKET_SERIALIZATION()
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/admin/
H A Dchunk_health_command.cc81 ChunksAvailabilityState availability; in run()
105 void ChunksHealthCommand::printState(const ChunksAvailabilityState& state, bool isPorcelain) const { in printState()
H A Dchunk_health_command.h44 void printState(const ChunksAvailabilityState& state, bool isPorcelain) const;
/dports/sysutils/lizardfs/lizardfs-3.12.0/src/master/
H A Dchunks.cc254 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 Dchunks.h63 const ChunksAvailabilityState& chunk_get_availability_state();