platform_system_core/libziparchive
Badhri Jagan Sridharan 71aebefe49 libziparchive: fix fallocate failures
The objective of fallocate call seems to be to
make sure that we have enough enough space left
in the disk to house the uncompressed file.
But, fallocate is only supported in the following
file systems:
btrfs, ext4, ocfs2, and xfs

Return error only when fallocate fails due to
lack of space. The immediate ftruncate call is
going to take of the majority of other errors.

Bug: http://b/21558406
Bug: 21561449
Change-Id: I7083f3c7e5d745bd6e8a190ac9020297d638d9d4
(cherry picked from commit a68d0d1fe4)
2015-06-04 13:26:29 -07:00
..
testdata libziparchive: fix issue with a directory with one file 2015-03-19 09:28:41 +00:00
Android.mk Prevent unaligned read in libziparchive. 2015-04-09 17:00:14 -07:00
entry_name_utils-inl.h Reject zip archives whose entry names are not valid UTF-8. 2014-12-08 12:25:05 +00:00
entry_name_utils_test.cc Reject zip archives whose entry names are not valid UTF-8. 2014-12-08 12:25:05 +00:00
zip_archive.cc libziparchive: fix fallocate failures 2015-06-04 13:26:29 -07:00
zip_archive_test.cc Avoid mapping output to memory while writing to a file. 2015-06-04 13:25:52 -07:00