OSDN Git Service

Use sgdisk to create better-aligned MBR tables.
authorJeff Sharkey <jsharkey@android.com>
Wed, 18 Oct 2017 20:09:52 +0000 (14:09 -0600)
committerJeff Sharkey <jsharkey@android.com>
Wed, 18 Oct 2017 20:09:54 +0000 (14:09 -0600)
commit68f1b8bdfb657dcf2201b20e73f4557d38b44885
tree478c8b46971bc6c64d791f3eb153579175ec5e74
parenta6f628587523624d03ba78f49d2aff6f57368d99
Use sgdisk to create better-aligned MBR tables.

We heavily leverage sgdisk, which already has a bunch of logic to
optimally align partitions.  We've been using it for the adoptable
storage GPT tables, and now we also use it for MBR tables.

Test: cts-tradefed run commandAndExit cts-dev --abi armeabi-v7a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 63735902
Change-Id: I846a8c96930ec2c6ab12e54dc2d464b17f7c54a9
model/Disk.cpp