platform_bootable_recovery/minzip
Alistair Strachan 733285fea2 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
2016-05-05 16:04:58 -07:00
..
Android.mk Fix some memory leaks. 2016-02-10 15:32:19 -08:00
Bits.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
DirUtil.cpp Move selinux dependencies out of header files. 2016-04-01 18:24:39 -07:00
DirUtil.h Move selinux dependencies out of header files. 2016-04-01 18:24:39 -07:00
Hash.c Clean up LOG functions. 2015-07-16 22:12:32 -07:00
Hash.h recovery: Switch applypatch/ and updater/ to cpp. 2015-07-13 17:21:31 -07:00
inline_magic.h Fix multiple defined symbol errors 2012-08-21 16:04:21 -04:00
Inlines.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
Log.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
SysUtil.c Clean up LOG functions. 2015-07-16 22:12:32 -07:00
SysUtil.h do verification and extraction on memory, not files 2014-01-16 13:29:28 -08:00
Zip.c updater, minzip: Remove unnecessary O_SYNC flags. 2016-05-05 16:04:58 -07:00
Zip.h Move selinux dependencies out of header files. 2016-04-01 18:24:39 -07:00