summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-08-06 15:53:38 -0700
committerDavid Anderson <dvander@google.com>2018-08-06 15:59:38 -0700
commit6868cb9f5e56cdacc328285ed8cc2f54b6ee090d (patch)
tree4748bc4a8199caa58d7ce1c8be4211c4ae22cf99 /libutils/Unicode.cpp
parentf502182ac68b491c278c20e0b8792bd75e235863 (diff)
fs_mgr: Do not mount empty partitions.
If a logical partition is resized to 0 bytes, it will have no extents. This is not allowed by device-mapper, but is useful for effectively compacting partitions with "fastboot flashall". If all logical partitions are resized to 0, then resized to their intended size, then we will allocate extents more efficiently. However, if a partition is left with a zero size (either intentionally or not), this should not throw the device into a reboot loop due to CreateLogicalPartitions failing. Instead we skip partitions with no extents. Bug: 78793464 Test: with fastbootd: fastboot create-partition example 4096 fastboot resize-partition example 0 device reboots successfully Change-Id: I572efa949176c8c3c493ef00438d8badd4d7cf4f
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions