system/core
修訂 | 90611aa3e6918448301e5712703062348a005546 (tree) |
---|---|
時間 | 2019-04-18 06:00:56 |
作者 | Mark Salyzyn <salyzyn@goog...> |
Commiter | Mark Salyzyn |
fs_mgr: overlay: wait for logical partition to be created
Test: adb-remount-test.sh
Bug: 130238923
Change-Id: Iaff01565d6df5c4434e66f742ed0939f61f6005a
@@ -715,7 +715,7 @@ bool fs_mgr_overlayfs_create_scratch(const Fstab& fstab, std::string* scratch_de | ||
715 | 715 | } |
716 | 716 | |
717 | 717 | if (changed || partition_create) { |
718 | - if (!CreateLogicalPartition(super_device, slot_number, partition_name, true, 0s, | |
718 | + if (!CreateLogicalPartition(super_device, slot_number, partition_name, true, 10s, | |
719 | 719 | scratch_device)) |
720 | 720 | return false; |
721 | 721 |
@@ -940,7 +940,7 @@ bool fs_mgr_overlayfs_teardown(const char* mount_point, bool* change) { | ||
940 | 940 | auto slot_number = fs_mgr_overlayfs_slot_number(); |
941 | 941 | auto super_device = fs_mgr_overlayfs_super_device(slot_number); |
942 | 942 | const auto partition_name = android::base::Basename(kScratchMountPoint); |
943 | - CreateLogicalPartition(super_device, slot_number, partition_name, true, 0s, | |
943 | + CreateLogicalPartition(super_device, slot_number, partition_name, true, 10s, | |
944 | 944 | &scratch_device); |
945 | 945 | } |
946 | 946 | mount_scratch = fs_mgr_overlayfs_mount_scratch(scratch_device, |