Home
last modified time | relevance | path

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

/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dwriter_v2.cpp113 header_.op_size = sizeof(CowOperationV2); in SetupHeaders()
162 std::unique_ptr<CowOperationV2> op = std::make_unique<CowOperationV2>(); in InitBatchWrites()
164 cowop_ptr[i].iov_len = sizeof(CowOperationV2); in InitBatchWrites()
218 cluster_size_ = header_.cluster_ops * sizeof(CowOperationV2); in InitPos()
222 next_data_pos_ = next_op_pos_ + sizeof(CowOperationV2); in InitPos()
314 CowOperationV2 op = {}; in EmitCopy()
400 CowOperationV2 op = {}; in EmitBlocks()
452 CowOperationV2 op = {}; in EmitZeroBlocks()
463 CowOperationV2 op = {}; in EmitLabel()
474 CowOperationV2 op = {}; in EmitSequenceData()
[all …]
Dparser_v2.cpp42 if (header_.op_size != sizeof(CowOperationV2)) { in Parse()
44 << sizeof(CowOperationV2); in Parse()
89 data_pos = pos + header_.cluster_ops * sizeof(CowOperationV2); in ParseOps()
91 data_pos = pos + sizeof(CowOperationV2); in ParseOps()
94 auto ops_buffer = std::make_shared<std::vector<CowOperationV2>>(); in ParseOps()
101 uint64_t to_add = std::min(cluster_ops, (fd_size_ - pos) / sizeof(CowOperationV2)); in ParseOps()
105 to_add * sizeof(CowOperationV2))) { in ParseOps()
116 pos += sizeof(CowOperationV2) + GetNextOpOffset(current_op, header_.cluster_ops); in ParseOps()
188 if (ops_buffer->size() * sizeof(CowOperationV2) != footer_->op.ops_size) { in ParseOps()
Dcow_format.cpp61 std::ostream& operator<<(std::ostream& os, CowOperationV2 const& op) { in operator <<()
112 int64_t GetNextOpOffset(const CowOperationV2& op, uint32_t cluster_ops) { in GetNextOpOffset()
122 int64_t GetNextDataOffset(const CowOperationV2& op, uint32_t cluster_ops) { in GetNextDataOffset()
124 return cluster_ops * sizeof(CowOperationV2); in GetNextDataOffset()
126 return sizeof(CowOperationV2); in GetNextDataOffset()
Dparser_v2.h37 std::shared_ptr<std::vector<CowOperationV2>> get_v2ops() { return v2_ops_; } in get_v2ops()
41 std::shared_ptr<std::vector<CowOperationV2>> v2_ops_;
Dwriter_v2.h53 bool WriteOperation(const CowOperationV2& op, const void* data = nullptr, size_t size = 0);
54 void AddOperation(const CowOperationV2& op);
87 std::vector<std::unique_ptr<CowOperationV2>> opbuffer_vec_;
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_format.h160 struct CowOperationV2 { struct
279 static_assert(sizeof(CowOperationV2) == sizeof(CowFooterOperation));
335 std::ostream& operator<<(std::ostream& os, CowOperationV2 const& arg);
343 int64_t GetNextOpOffset(const CowOperationV2& op, uint32_t cluster_size);
344 int64_t GetNextDataOffset(const CowOperationV2& op, uint32_t cluster_size);