Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1a18756 authored by Daniel Zheng's avatar Daniel Zheng
Browse files

libsnapshot: v3 writer GetCowSize

Cow size should just be wherever the last data position is written. In
v3 we no longer have a footer, so this calculation is simple. This
function is used by cow estimator

Test: cow_api_test
Change-Id: I08204e2d560b120450019a529baa41de9b8e66d5
parent e343580f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -360,9 +360,7 @@ bool CowWriterV3::Finalize() {
}

uint64_t CowWriterV3::GetCowSize() {
    LOG(ERROR) << __LINE__ << " " << __FILE__
               << " <- Get Cow Size function here should never be called";
    return 0;
    return next_data_pos_;
}

}  // namespace snapshot