Lines Matching refs:slaves
91 std::vector<BlockDevice> slaves; in GetSlaves() local
96 slaves.push_back(dev); in GetSlaves()
102 return slaves; in GetSlaves()
136 std::vector<BlockDevice> slaves = top_device.GetSlaves(); in PopulateLoopInfo() local
137 if (slaves.size() != 1 && slaves.size() != 2) { in PopulateLoopInfo()
139 << " has unexpected number of slaves : " << slaves.size(); in PopulateLoopInfo()
142 backing_files.reserve(slaves.size()); in PopulateLoopInfo()
143 for (const auto& dev : slaves) { in PopulateLoopInfo()
160 if (slaves.size() == 2) { in PopulateLoopInfo()
162 std::swap(slaves[0], slaves[1]); in PopulateLoopInfo()
167 return Error() << "Data loop device " << slaves[0].DevPath() in PopulateLoopInfo()
170 if (slaves.size() == 2) { in PopulateLoopInfo()
172 return Error() << "Hashtree loop device " << slaves[1].DevPath() in PopulateLoopInfo()
175 apex_data->hashtree_loop_name = slaves[1].DevPath(); in PopulateLoopInfo()
177 apex_data->loop_name = slaves[0].DevPath(); in PopulateLoopInfo()