android_system_core/fs_mgr
David Anderson 4d9c7459c4 liblp: Require block-aligned partition sizes.
DM_TABLE_LOAD will reject dm-linear entries if their size is not a
multiple of the backing device's logical block size. For example, a
partition of 10GiB+512 bytes will fail to map in device-mapper if the
logical block size is 4096 bytes. To address this, this patch adds a
few changes to liblp:

The block size given to lpmake is now recorded in LpGeometryMetadata.
The block size must be a multiple of the sector size. In addition,
partiton sizes are now aligned to the block size, and the super
partition must have enough free space to allocate at least one block (in
addition to storing metadata).

GrowPartition now has multiple checks that the block-size invariant is not
violated, to ensure that no invalid partition tables will be created.

Bug: 79173901
Test: liblp_test gtest
Change-Id: I484aac1f9b90ebd92dc1c89ce1e09cd89bbb441e
2018-08-02 10:33:41 -07:00
..
include fs_mgr: Add a method for creating one-off partition instances. 2018-07-23 11:43:27 -07:00
include_fstab/fstab
libdm fs_mgr: libdm: add support android-verity target. 2018-07-23 15:24:55 -07:00
liblp liblp: Require block-aligned partition sizes. 2018-08-02 10:33:41 -07:00
tests fs_mgr: Add support in fs_mgr_read_fstab_file for /proc/mounts 2018-06-27 14:49:06 -07:00
tools fs_mgr: libdm: add support android-verity target. 2018-07-23 15:24:55 -07:00
.clang-format
Android.bp liblp: Allow building liblp as a shared library. 2018-07-27 19:34:56 -07:00
OWNERS
fs_mgr.cpp Merge "fs_mgr: Always mount tmpfs with MS_NOEXEC" 2018-08-01 22:41:56 +00:00
fs_mgr_avb.cpp libdm: Add DmTargetVerity and use it in fs_mgr_avb. 2018-06-25 17:56:12 -07:00
fs_mgr_avb_ops.cpp
fs_mgr_boot_config.cpp
fs_mgr_dm_linear.cpp fs_mgr: Add a method for creating one-off partition instances. 2018-07-23 11:43:27 -07:00
fs_mgr_format.cpp
fs_mgr_fstab.cpp Move recovery to /system/bin 2018-07-24 21:42:23 -07:00
fs_mgr_priv.h
fs_mgr_priv_avb_ops.h
fs_mgr_priv_boot_config.h
fs_mgr_priv_sha.h
fs_mgr_slotselect.cpp
fs_mgr_verity.cpp fs_mgr: Use libdm for fs_mgr_verity. 2018-06-26 12:41:47 -07:00