commit | 733285fea265af4fc91cf37916fada1a66cec470 | [log] [tgz] |
---|---|---|
author | Alistair Strachan <alistair.strachan@imgtec.com> | Thu May 05 16:04:32 2016 -0700 |
committer | Alistair Strachan <alistair.strachan@imgtec.com> | Thu May 05 16:04:58 2016 -0700 |
tree | b8ffdee0dae6d2e577436533e59bf00eed021d63 | |
parent | ecd6e2af5060ba3f7d5c978be6d617d1242f231c [diff] |
updater, minzip: Remove unnecessary O_SYNC flags. Remove O_SYNC from mzExtractRecursive() and PackageExtractFileFn(). These functions deal with extracting whole files from the update package onto a filesystem. If run on ext4 on a rotating disk, for example, the O_SYNC flag will cause serious performance problems and the extraction proecss can take over 30 minutes, with no obvious benefits. This API function already calls fsync(fd) after each file is extracted to ensure data and metadata is written to the underlying block device, so the O_SYNC calls should be superfluous and safely removable. This change does not affect the OTA patch paths or any modification of the bootloader partition or writes to other 'emmc' partitions. Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com> Change-Id: I9cbb98a98e6278bf5c0d7efaae340773d1fbfcd2
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test