commit | 2aed5a5e4c438defcaf3e916fcce798b1436e247 | [log] [tgz] |
---|---|---|
author | Daniel Zheng <zhengdaniel@google.com> | Thu Jan 04 14:12:57 2024 -0800 |
committer | Daniel Zheng <zhengdaniel@google.com> | Tue Jan 30 09:25:15 2024 -0800 |
tree | f3f3ef2d112b9a5be5f5e77a888b3ade918aa7ab | |
parent | 2c82c81f12e64ffa074e504e63d74a6370d2a924 [diff] |
libsnapshot: op_count_max default to max blocks In the case that op_count_max is read in as zero, we should use the upper bound of max blocks as the estimation. One case in which this error can happen is if a v2 cow estimator is used, we should still be able to run an OTA if we upper bound our ops buffer size estimation. Test: th Change-Id: I97ca66368d6631bf43c8911ed66f99c9e8096e2d