commit | ef53ff51ce0ad0a02f66192645badd9ac7728257 | [log] [tgz] |
---|---|---|
author | Dov Shlachter <dovs@google.com> | Tue Apr 30 15:15:12 2024 -0700 |
committer | Dov Shlachter <dovs@google.com> | Mon May 06 10:16:03 2024 -0700 |
tree | 978e2b216b41c70c1d30f40947b6f7b4574ce64e | |
parent | 611dbc99bb47faafcd5d8356f455d122660e80d5 [diff] |
Storage testlib can define TestBlockDevice from partitions Add functionality to TestBlockDeviceBuilder to define a block device as a collection of partitions with either associated data or just a size. Partition sizes are rounded up to the block size and padded with trailing zeroes. If the device is built via partitions, a valid GPT header and backup header are added to the device. Tests: new unit test passes Change-Id: I614f7d0c48e56b34ae9eaf08e5b0c953355f0cb0