commit | 6560d23765e26a860c3c7fd1a56df092d86ff495 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Mon Sep 21 13:35:12 2020 -0700 |
committer | David Anderson <dvander@google.com> | Mon Sep 28 11:24:37 2020 -0700 |
tree | 674780001c5652ad36bc1ebefc20df49a2dc13c9 | |
parent | b3dc6089b050719e4ba739b6dd5b4872ba929ac0 [diff] |
libsnapshot: Add a maximum block count to CowWriter. Once COWs are allocated, their size is fixed, and we don't want to write beyond the end. To make this validation less tedious, the virtual methods of ICowWriter have been made internal. The user-facing API calls do validation before calling the internal variants. Bug: 168554689 Test: cow_writer_test Change-Id: Ic9ebb5bc4b601180d35d915c47cd9c537bc423fa