Lines Matching refs:slaves
88 std::vector<BlockDevice> slaves; in GetSlaves() local
93 slaves.push_back(dev); in GetSlaves()
99 return slaves; in GetSlaves()
130 std::vector<BlockDevice> slaves = top_device.GetSlaves(); in PopulateLoopInfo() local
131 if (slaves.size() != 1 && slaves.size() != 2) { in PopulateLoopInfo()
133 << " has unexpected number of slaves : " << slaves.size(); in PopulateLoopInfo()
136 backing_files.reserve(slaves.size()); in PopulateLoopInfo()
137 for (const auto& dev : slaves) { in PopulateLoopInfo()
150 if (slaves.size() == 2) { in PopulateLoopInfo()
152 std::swap(slaves[0], slaves[1]); in PopulateLoopInfo()
157 return Error() << "Data loop device " << slaves[0].DevPath() in PopulateLoopInfo()
160 if (slaves.size() == 2) { in PopulateLoopInfo()
162 return Error() << "Hashtree loop device " << slaves[1].DevPath() in PopulateLoopInfo()
165 apex_data->hashtree_loop_name = slaves[1].DevPath(); in PopulateLoopInfo()
167 apex_data->loop_name = slaves[0].DevPath(); in PopulateLoopInfo()