diff options
author | David Anderson <dvander@google.com> | 2018-07-17 15:54:44 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2018-07-17 18:43:35 -0700 |
commit | aca58a4abbfbcac263892c265657ba5b2158fb35 (patch) | |
tree | 0bab0b749b6f58afa7fec2db201d8e781a390920 /partition_tools/README.md | |
parent | 24a436a49e6540f466159ea5510356a31ea2cb39 (diff) | |
download | extras-aca58a4abbfbcac263892c265657ba5b2158fb35.tar.gz |
lpmake: Pass a block size to WriteToSparseFile.
Note: The default block size is 4096.
Bug: 79173901
Test: lpmake -S can be flashed to Pixel 2
Change-Id: I44a96126edddbaedf078c3a59be3a74df89c0d74
Diffstat (limited to 'partition_tools/README.md')
-rw-r--r-- | partition_tools/README.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/partition_tools/README.md b/partition_tools/README.md index abd38992..0993ce29 100644 --- a/partition_tools/README.md +++ b/partition_tools/README.md @@ -19,6 +19,7 @@ Optional arguments: * `--alignment=N` - By default, lpmake will align partitions to 1MiB boundaries. However, an alternate alignment can be specified if desired. This is useful for devices with a minimum I/O request size where mis-aligned partition boundaries could be a performance issue. * `--alignment-offset=N` - In some cases, the "super" partition is misaligned within its parent block device. This offset can be used to correct for that. * `--sparse` - If set, the output image will be in sparse format for flashing with fastboot. Otherwise, by default, the image will be a minimal format usable with lpdump and lpflash. +* `-b,--block-size=N` - When writing sparse files, the device may require a specific block size. That block size can be specified here. The alignment must be a multiple of the block size. By default the block size is 4096. Example usage. This specifies a 10GB super partition for an A/B device, with a single 64MiB "cache" partition. |