commit | 8eeb02833800973c3e41872b0777240871333901 | [log] [tgz] |
---|---|---|
author | Hongyu Jin <hongyu.jin@unisoc.com> | Sat Sep 24 12:00:02 2022 +0800 |
committer | Hongyu Jin <hongyu.jin@unisoc.com> | Wed Sep 28 17:44:44 2022 +0800 |
tree | fa201f890c4dc7c158876596163dd7a481662124 | |
parent | 3f658163eeb961587a1dd73a97a596ee288622fb [diff] |
cryptfs: Update the size of dm-crypt device according to sector size The legacy method for metadata encryption on adoptable storage failed when the size of the block device isn't a multiple of the crypto sector size. Update the size of dm-crypt device according to sector size before construct dm_target. Bug: 248582018 Change-Id: I5c78889bdfedca7f7b0704500fc313d7a48d5a3b Signed-off-by: Hongyu Jin <hongyu.jin@unisoc.com>