Skip to content
API Documentation
BastionGuard™
device_enumerator.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <string>
5#include <vector>
6
7struct DeviceInfo {
8 std::string path;
9 std::string name;
10 std::string model;
11 std::string transport;
12 std::string type;
13 uint64_t size_bytes {0};
14 bool removable {false};
15 bool system_disk {false};
16 bool degraded {false};
17 std::string health_summary;
18};
19
21public:
22 static std::vector<DeviceInfo> enumerate_linux_block_devices(bool include_health_probe = false);
23};
static std::vector< DeviceInfo > enumerate_linux_block_devices(bool include_health_probe=false)
std::string name
std::string health_summary
std::string model
std::string type
std::string transport
std::string path