No description
Find a file
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
adb Merge "adb: win32: fix Unicode console output" 2018-08-01 05:25:09 +00:00
adf Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
base Remove unused logging symbols. 2018-07-31 16:33:38 -07:00
bootstat Merge "bootstat: record reboot reason history in persist.sys.boot.reason.history" 2018-07-02 20:28:49 +00:00
cpio Possible null pointer miss on realloc 2017-03-23 22:41:14 +01:00
debuggerd crasher: add close(fileno(FILE*)) and close(dirfd(DIR*)). 2018-07-18 18:11:46 -07:00
demangle Build adbd for recovery 2018-05-24 14:11:11 +09:00
diagnose_usb Build adbd for recovery 2018-05-24 14:11:11 +09:00
fastboot Merge "Flash super partition with fastboot flashall" 2018-08-01 20:47:53 +00:00
fs_mgr liblp: Require block-aligned partition sizes. 2018-08-02 10:33:41 -07:00
gatekeeperd Add OWNERS file to gatekeeperd 2018-07-25 15:02:38 -07:00
healthd charger: minui error handling fixups 2018-07-30 08:45:52 -07:00
include Move android_filesystem_config.h => fs_config.h 2017-08-02 16:31:19 -07:00
init Merge "init: run fsck for early mount partitions" 2018-08-01 21:02:35 +00:00
libappfuse bpfmt. 2018-02-16 17:58:14 -08:00
libasyncio Build adbd for recovery 2018-05-24 14:11:11 +09:00
libbacktrace [libutils] Modernize codebase by replacing NULL with nullptr 2018-07-16 18:11:34 -07:00
libbinderwrapper Make libbinderwrapper available in /vendor partition 2018-04-06 08:41:21 +09:00
libcrypto_utils Build adbd for recovery 2018-05-24 14:11:11 +09:00
libcutils Add support for /product-services partition. 2018-07-26 16:27:28 +00:00
libdiskconfig Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] 2017-10-02 10:44:29 -07:00
libgrallocusage Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libion libion: cleanup logging 2018-03-07 10:56:06 -08:00
libkeyutils Build adbd for recovery 2018-05-24 14:11:11 +09:00
liblog liblog: Add functions to reset log context 2018-08-02 00:55:01 +00:00
libmemtrack Add OWNERS. 2017-12-07 13:30:03 -08:00
libmemunreachable Move libbacktrace off cutils. 2018-07-11 13:55:07 -07:00
libmetricslogger Add support for logging complex events from C++. 2018-05-08 10:27:09 +01:00
libnativebridge bpfmt. 2018-02-16 17:58:14 -08:00
libnativeloader Separate namespace acquisition from library loading 2018-07-12 15:44:35 +02:00
libnetutils Add OWNERS. 2017-12-07 13:30:03 -08:00
libpackagelistparser Mark as recovery_available: true 2018-05-15 09:47:04 +09:00
libpixelflinger MIPS[64]: codeflinger: Fix build due to unused variable warnings 2017-11-06 16:38:49 +01:00
libprocessgroup Add recovery_available: true to init dependencies 2018-07-24 13:45:50 -07:00
libprocinfo libprocinfo: return error msg instead of printing it. 2018-07-24 14:34:06 -07:00
libqtaguid Redirect qtaguid native call to netd fwmark client 2017-11-09 18:02:22 -08:00
libsparse Revert "libsparse: Add sparse typed callback" 2018-07-26 05:23:45 +00:00
libstats Remove a redundant check in statsd socket code. 2018-05-22 16:06:21 -07:00
libsuspend Add force_suspend function 2018-01-19 12:30:39 -08:00
libsync NDK: add availability comments to <sync.h>. 2018-07-27 15:13:33 -07:00
libsystem Mark as recovery_available: true 2018-05-15 09:47:04 +09:00
libsysutils [libsysutils] Modernize codebase by replacing NULL with nullptr 2018-07-24 16:34:27 -07:00
libunwindstack Create lookup table of DEX symbols. 2018-07-20 10:48:59 -07:00
libusbhost Remove urb request size maximum. 2018-02-07 16:12:14 -08:00
libutils libutils: switch Looper's fds to unique_fd. 2018-07-18 18:12:12 -07:00
libvndksupport bpfmt. 2018-02-16 17:58:14 -08:00
libziparchive libziparchive: use fdsan in ZipArchive. 2018-07-18 18:11:46 -07:00
llkd llkd: bootstat: propagate detailed livelock canonical boot reason 2018-04-18 14:02:16 -07:00
lmkd Declare __fake_use_va_args as a variadic function. 2018-07-25 14:36:35 -07:00
logcat add event log range for audioserver 2018-07-10 14:21:38 -07:00
logd [logd] Modernize codebase by replacing NULL with nullptr 2018-07-13 17:50:55 -07:00
logwrapper Build adbd for recovery 2018-05-24 14:11:11 +09:00
mkbootimg Add recovery_available: true to init dependencies 2018-07-24 13:45:50 -07:00
property_service Add recovery_available: true to init dependencies 2018-07-24 13:45:50 -07:00
qemu_pipe Build adbd for recovery 2018-05-24 14:11:11 +09:00
reboot reboot: only pause indefinitely for non-shutdown operations 2017-09-29 16:29:52 +00:00
rootdir Merge "Make /acct have 0555 permissions after mounting" 2018-07-30 23:37:59 +00:00
run-as run-as: Migrate to blueprint 2018-06-27 11:15:23 -07:00
sdcard Remove FUSE logic; it's only a sdcardfs wrapper. 2018-01-12 15:41:55 -07:00
shell_and_utilities Move back to BSD grep, and make it available for recovery too. 2018-08-01 10:35:46 -07:00
storaged Merge "storaged: lower capabilities in init" 2018-04-12 15:55:26 +00:00
toolbox Move back to BSD grep, and make it available for recovery too. 2018-08-01 10:35:46 -07:00
trusty Merge "trusty: tipc_test: Read output and test result from ta2ta_ipc_test" 2018-07-26 00:17:54 +00:00
usbd bpfmt. 2018-02-16 17:58:14 -08:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
.clang-format-2 Remove PenaltyExcessCharacter from clang-formats. 2018-07-19 13:50:41 -07:00
.clang-format-4 Remove PenaltyExcessCharacter from clang-formats. 2018-07-19 13:50:41 -07:00
.gitignore
Android.bp
Android.mk
CleanSpec.mk Shared libs are supported in recovery mode 2018-06-10 08:32:24 +09:00
MODULE_LICENSE_APACHE2
NOTICE
OWNERS Move per-file OWNERS directives to their directories. 2018-06-06 11:49:40 +09:00
platform_tools_tool_version.mk Fix warning on the build servers 2017-05-25 12:35:40 -07:00
PREUPLOAD.cfg Add a PREUPLOAD.cfg file to run git-clang-format on every commit 2017-03-08 16:51:26 +08:00