[thin] Add default constructor to struct device_details
This commit is contained in:
parent
08a7093cd5
commit
08219a60b6
@ -47,6 +47,13 @@ namespace {
|
|||||||
|
|
||||||
namespace thin_provisioning {
|
namespace thin_provisioning {
|
||||||
namespace device_tree_detail {
|
namespace device_tree_detail {
|
||||||
|
device_details::device_details()
|
||||||
|
: mapped_blocks_(0),
|
||||||
|
transaction_id_(0),
|
||||||
|
creation_time_(0),
|
||||||
|
snapshotted_time_(0) {
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
device_details_traits::unpack(device_details_disk const &disk, device_details &value)
|
device_details_traits::unpack(device_details_disk const &disk, device_details &value)
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,8 @@ namespace thin_provisioning {
|
|||||||
uint64_t transaction_id_; /* when created */
|
uint64_t transaction_id_; /* when created */
|
||||||
uint32_t creation_time_;
|
uint32_t creation_time_;
|
||||||
uint32_t snapshotted_time_;
|
uint32_t snapshotted_time_;
|
||||||
|
|
||||||
|
device_details();
|
||||||
};
|
};
|
||||||
|
|
||||||
struct device_details_traits {
|
struct device_details_traits {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user