History log of /system/core/libsparse/output_file.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8116c8c37aadd83033ffea9e4f5fc86240428e43 01-May-2014 Mark Salyzyn <salyzyn@google.com> libsparse: turn on -Werror

- Deal with some -Wunused issues

Change-Id: I9667d74c0dfbe55c625e65b9d44d7c6f861c455d
/system/core/libsparse/output_file.c
031a748b2a9bf6dcfd3983d8f0f616718fcddd88 28-Feb-2014 Mark Salyzyn <salyzyn@google.com> libsparse: deal with build warning messages

- mostly unused parameters, added defs.h to hold __unused macro
- read_all prototype not included, added output_file.h to acquire

Change-Id: Ib7ee00614acab53a6bd6a64f7e26a8c13dbe6297
/system/core/libsparse/output_file.c
ccecf1425412beb2bc3bb38d470293fdc244d6f1 16-Jan-2014 Elliott Hughes <enh@google.com> system/core 64-bit cleanup.

This cleans up most of the size-related problems in system/core.
There are still a few changes needed for a clean 64-bit build,
but they look like they might require changes to things like the
fastboot protocol.

Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
/system/core/libsparse/output_file.c
14e28d39f7f094225c1ddae8fa43bd792c621a8f 29-Oct-2013 Elliott Hughes <enh@google.com> Fix a bunch of small system/core bugs.

Missing frees in:
adb/file_sync_client.c
fastboot/fastboot.c
libsparse/output_file.c

Missing closedirs in:
adb/file_sync_service.c
cpio/mkbootfs.c
libcutils/dir_hash.c

Potential buffer overrun in:
gpttool/gpttool.c

Incorrect NULL check in:
libsparse/backed_block.c

Bug: https://code.google.com/p/android/issues/detail?id=61564
Change-Id: If97838a9e73a77aef7f416c31c237ce1fca4ce21
/system/core/libsparse/output_file.c
fccfa414c96061689676a8803e3492f992618486 11-Dec-2012 Daniel Leung <daniel.leung@intel.com> libsparse: Use BIONIC implementation of mmap64()

Change-Id: I63692629d3a62b7aee21202b67241904b1cc9789
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
/system/core/libsparse/output_file.c
83a6d36d4226f82c202ffb27f89e080f95b71c30 01-Apr-2013 Hong-Mei Li <a21834@motorola.com> libsparse: Fix null pointer issue

Fix the issue that "out" pointer is dereferenced without checking.

Change-Id: I76a57ad7309841218231346f4807ef2be8628737
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
/system/core/libsparse/output_file.c
b43828b247fd4f1e0373584de0504004c69eeac9 09-Jun-2012 Colin Cross <ccross@android.com> libsparse: rename symbols that conflict with libext4_utils

Until ext4_utils switches to using libsparse, libext4_utils defines some
of the same symbols as libsparse. Fastboot links statically against
both of them, and there is no easy way to make the symbols hidden, so
just rename them in libsparse.

Change-Id: Idc2cfe20efe3c3a7fb8233f453a89bbbeb0dcc8b
/system/core/libsparse/output_file.c
1e17b313a6257b7b5081e178e81435c09d60378e 22-May-2012 Colin Cross <ccross@android.com> libsparse: add callback output file type

Add a new output file subclass that will call a callback for
each block as it is written. Will be used to measure the space
used by each sparse block to allow resparsing files.

Also add sparse_file_callback, which will write out a sparse
file by calling the provided write function.

Change-Id: I18707bd9c357b68da319cc07982e93d1c2b2bee2
/system/core/libsparse/output_file.c
b4cd267db30c152245e6308598e0066d87c5c55d 18-May-2012 Colin Cross <ccross@android.com> libsparse: pseudo-subclass output_file for normal and gz files

Create two subclasses of output_file that can handle normal
and gzipped files, and refactor open_output_fd. Will allow
adding support for an output_file type that is not file
backed.

Change-Id: I26744c74d13f205cf17df1ea9caac1eea9c57357
/system/core/libsparse/output_file.c
13a560659381b34ce3edbfa8dbe6c0aa6c076f20 20-Jun-2012 Colin Cross <ccross@android.com> libsparse: fix windows image writing

Fix write_fd_chunk on windows. Uses malloc and read instead of mmap.

Change-Id: I75f10db2e04f19e7f3a6ff46b6978d143cb5254e
/system/core/libsparse/output_file.c
9e1f17e926fa20255c5f4b4d2f68aa98a964253a 26-Apr-2012 Colin Cross <ccross@android.com> libsparse: add support for including fds

Add sparse_file_add_fd to include all or part of the contents
of an fd in the output file. Will be useful for re-sparsing files
where fd will point to the input sparse file.

Change-Id: I5d4ab07fb37231e8e9c1912f62a2968c8b0a00ef
/system/core/libsparse/output_file.c
b55dceea986ab24f8b836b5116b389ed619c816e 25-Apr-2012 Colin Cross <ccross@android.com> libsparse: cleanups

Move block loops into sparse.c with iterator helpers in backed_block.c.
Simplify chunk writing by moving skip chunk calls from output_file.c to
sparse.c.
Rename variables to be consistent with new naming.
Remove use of u8, u32, u64.

Change-Id: Ic138ad58bef9f96239266ccee12ee83ea285e7eb
/system/core/libsparse/output_file.c
28fa5bc347390480fe190294c6c385b6a9f0d68b 20-May-2012 Colin Cross <ccross@android.com> system/core: move libsparse into system/core

This moves an exact copy of libsparse from
system/extras/ext4_utils/libsparse to system/core/libsparse in
preparation for linking tools in system/core against it.

Change-Id: If664e4fcfd6612844ac745589beb1517e7f9fe58
/system/core/libsparse/output_file.c