Lines Matching defs:drive
12 #include "generated/enums/drive.hpp"
127 for (const std::string& drive : driveList)
129 sdbusplus::message::object_path object(drive);
132 BMCWEB_LOG_ERROR("Failed to find filename in {}", drive);
343 inline std::optional<drive::MediaType> convertDriveType(std::string_view type)
347 return drive::MediaType::HDD;
351 return drive::MediaType::SSD;
358 return drive::MediaType::Invalid;
422 std::optional<drive::MediaType> mediaType =
430 if (*mediaType == drive::MediaType::Invalid)
450 // drive capacity not known
533 //"The drive is not currently encrypted."
535 drive::EncryptionStatus::Unencrypted;
540 //"The drive is currently encrypted and the data is not
543 drive::EncryptionStatus::Locked;
547 // "The drive is currently encrypted but the data is accessible
550 drive::EncryptionStatus::Unlocked;
593 auto drive = std::ranges::find_if(
601 if (drive == subtree.end())
607 const std::string& path = drive->first;
608 const dbus::utility::MapperServiceMap& connectionNames = drive->second;
718 path + "/drive",
730 for (const auto& drive : resp)
732 sdbusplus::message::object_path drivePath(drive);
841 // mapper call drive
892 path + "/drive",
911 * This URL will show the drive interface for the specific drive in the chassis