xref: /openbmc/estoraged/include/util.hpp (revision 67a47446)
1 #pragma once
2 #include <string_view>
3 
4 namespace estoraged
5 {
6 namespace util
7 {
8 
9 class Util
10 {
11   public:
12     /** @brief finds the size of the linux block device in bytes
13      *  @param[in] devpath - the name of the linux block device
14      *  @return size of a block device using the devPath
15      */
16     static uint64_t findSizeOfBlockDevice(const std::string& devPath);
17 };
18 
19 } // namespace util
20 
21 } // namespace estoraged
22