[thin] Add default constructor to struct device_details

This commit is contained in:
Ming-Hung Tsai 2016-03-05 13:59:24 +08:00
parent 08a7093cd5
commit 08219a60b6
2 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,13 @@ namespace {
namespace thin_provisioning {
namespace device_tree_detail {
device_details::device_details()
: mapped_blocks_(0),
transaction_id_(0),
creation_time_(0),
snapshotted_time_(0) {
}
void
device_details_traits::unpack(device_details_disk const &disk, device_details &value)
{

View File

@ -20,6 +20,8 @@ namespace thin_provisioning {
uint64_t transaction_id_; /* when created */
uint32_t creation_time_;
uint32_t snapshotted_time_;
device_details();
};
struct device_details_traits {