summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-02-14 12:50:52 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-02-14 12:50:52 -0800
commit42aabc24dce05e3519a56a7987c30af04b4a50c3 (patch)
tree67ea3f9f0ada20477af07e50edf971cd884baf0e /main.cpp
parent88114b2a563d5bbbc68a16566e223797f4136227 (diff)
parent1f4307e51e3df5ce9d5e37dbad236f68c05023cc (diff)
Merge "Enable metadata encryption for userdata_gsi." am: 99046b75c4 am: 8b90acafcd
am: 1f4307e51e Change-Id: If3e65d967a99e3f757a1ab978067e61a3faeae66
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index d4b1c38..27a701b 100644
--- a/main.cpp
+++ b/main.cpp
@@ -226,7 +226,7 @@ static int process_config(VolumeManager* vm, bool* has_adoptable, bool* has_quot
*has_adoptable = false;
*has_quota = false;
*has_reserved = false;
- for (const auto& entry : fstab_default) {
+ for (auto& entry : fstab_default) {
if (entry.fs_mgr_flags.quota) {
*has_quota = true;
}
@@ -234,6 +234,11 @@ static int process_config(VolumeManager* vm, bool* has_adoptable, bool* has_quot
*has_reserved = true;
}
+ /* Make sure logical partitions have an updated blk_device. */
+ if (entry.fs_mgr_flags.logical && !fs_mgr_update_logical_partition(&entry)) {
+ PLOG(FATAL) << "could not find logical partition " << entry.blk_device;
+ }
+
if (entry.fs_mgr_flags.vold_managed) {
if (entry.fs_mgr_flags.nonremovable) {
LOG(WARNING) << "nonremovable no longer supported; ignoring volume";