Home
last modified time | relevance | path

Searched refs:footer_ (Results 1 – 6 of 6) sorted by relevance

/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dparser_v2.cpp130 footer_.emplace(); in ParseOps()
131 CowFooter* footer = &footer_.value(); in ParseOps()
132 memcpy(&footer_->op, &current_op, sizeof(footer->op)); in ParseOps()
174 } else if (!footer_) { in ParseOps()
182 if (footer_) { in ParseOps()
183 if (ops_buffer->size() != footer_->op.num_ops) { in ParseOps()
184 LOG(ERROR) << "num ops does not match, expected " << footer_->op.num_ops << ", found " in ParseOps()
188 if (ops_buffer->size() * sizeof(CowOperationV2) != footer_->op.ops_size) { in ParseOps()
Dwriter_v2.cpp118 footer_ = {}; in SetupHeaders()
119 footer_.op.data_length = 64; in SetupHeaders()
120 footer_.op.type = kCowFooterOp; in SetupHeaders()
293 footer_.op.num_ops = 0; in OpenForAppend()
515 auto continue_num_ops = footer_.op.num_ops; in Finalize()
540 footer_.op.ops_size = footer_.op.num_ops * sizeof(CowOperationV2); in Finalize()
545 memset(&footer_.unused, 0, sizeof(footer_.unused)); in Finalize()
548 if (!android::base::WriteFully(fd_, reinterpret_cast<const uint8_t*>(&footer_), in Finalize()
549 sizeof(footer_))) { in Finalize()
571 footer_.op.num_ops = continue_num_ops; in Finalize()
[all …]
Dparser_v2.h34 std::optional<CowFooter> footer() const override { return footer_; } in footer()
42 std::optional<CowFooter> footer_; variable
Dcow_reader.cpp82 cow->footer_ = footer_; in CloneCowReader()
157 footer_ = parser->footer(); in Parse()
487 if (!footer_) return false; in GetFooter()
488 *footer = footer_.value(); in GetFooter()
Dwriter_v2.h65 CowFooter footer_{};
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_reader.h186 std::optional<CowFooter> footer_; variable