Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
logical_block_metadata.hh
Go to the documentation of this file.
1 #pragma once
2 #include "../messages/blockinfo.hh"
3 #include <vector>
4 #include <string>
5 
6 namespace eclipse {
7 
9  std::string file_name;
10  std::string name;
11  std::string host_name;
12 
13  uint64_t size = 0L;
14  uint64_t hash_key = 0L;
15  uint64_t seq = 0L;
16 
17  std::vector<messages::BlockInfo> physical_blocks;
18  inline uint32_t get_number_of_phy_blocks() { return physical_blocks.size(); }
19 };
20 
21 }
std::string host_name
Definition: logical_block_metadata.hh:11
Definition: logical_block_metadata.hh:8
uint32_t get_number_of_phy_blocks()
Definition: logical_block_metadata.hh:18
uint64_t hash_key
Definition: logical_block_metadata.hh:14
std::vector< messages::BlockInfo > physical_blocks
Definition: logical_block_metadata.hh:17
std::string file_name
Definition: logical_block_metadata.hh:9
uint64_t size
Definition: logical_block_metadata.hh:13
std::string name
Definition: logical_block_metadata.hh:10
uint64_t seq
Definition: logical_block_metadata.hh:15