Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
common
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
8
struct
logical_block_metadata
{
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
}
eclipse::logical_block_metadata::host_name
std::string host_name
Definition:
logical_block_metadata.hh:11
eclipse::logical_block_metadata
Definition:
logical_block_metadata.hh:8
eclipse::logical_block_metadata::get_number_of_phy_blocks
uint32_t get_number_of_phy_blocks()
Definition:
logical_block_metadata.hh:18
eclipse::logical_block_metadata::hash_key
uint64_t hash_key
Definition:
logical_block_metadata.hh:14
eclipse::logical_block_metadata::physical_blocks
std::vector< messages::BlockInfo > physical_blocks
Definition:
logical_block_metadata.hh:17
eclipse::logical_block_metadata::file_name
std::string file_name
Definition:
logical_block_metadata.hh:9
eclipse::logical_block_metadata::size
uint64_t size
Definition:
logical_block_metadata.hh:13
eclipse::logical_block_metadata::name
std::string name
Definition:
logical_block_metadata.hh:10
eclipse::logical_block_metadata::seq
uint64_t seq
Definition:
logical_block_metadata.hh:15
Generated on Wed Jan 30 2019 08:53:21 for VeloxDFS by
1.8.6