Searched refs:slaves_dir (Results 1 – 2 of 2) sorted by relevance
571 auto slaves_dir = "/sys/block/" + name + "/slaves"; in GetParentBlockDeviceByPath() local572 auto dir = std::unique_ptr<DIR, decltype(&closedir)>(opendir(slaves_dir.c_str()), closedir); in GetParentBlockDeviceByPath()574 PLOG(ERROR) << "Failed to open: " << slaves_dir; in GetParentBlockDeviceByPath()581 LOG(ERROR) << "Too many slaves in " << slaves_dir; in GetParentBlockDeviceByPath()587 LOG(ERROR) << "No slaves in " << slaves_dir; in GetParentBlockDeviceByPath()
558 std::string slaves_dir = "/sys/" + dm_path + "/slaves"; in ListSlavesOfDmDevice() local559 auto st = WalkDir(slaves_dir, [&](const auto& entry) { in ListSlavesOfDmDevice()565 ADD_FAILURE() << "Failed to scan " << slaves_dir << " : " << ec; in ListSlavesOfDmDevice()