commit | 79a68a934b63e4dd5b6f6dd2c902811382a6d0f5 | [log] [tgz] |
---|---|---|
author | Daniel Zheng <zhengdaniel@google.com> | Thu Nov 09 15:49:15 2023 -0800 |
committer | Daniel Zheng <zhengdaniel@google.com> | Thu Nov 09 15:49:15 2023 -0800 |
tree | e0a727a00e3c94afe5dc370b4e8e44d09af871f8 | |
parent | c2ce084889585cfb7a59ed410e96742d84d2b71a [diff] |
libsnapshot: update cow estimation Cow estimator needs to update next_data_pos_ to be in the correct position Test: th Change-Id: I1e3f2c9434573197e840be5637a90c679610ac4e
diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp index 876a45d..89fd903 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp
@@ -322,6 +322,7 @@ if (IsEstimating()) { header_.op_count++; header_.op_count_max++; + next_data_pos_ += op.data_length; return true; }