<feed xmlns='http://www.w3.org/2005/Atom'>
<title>system_core/libsparse, branch replicant-10</title>
<subtitle>Fork of system/core
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/'/>
<entry>
<title>Convert Android.mk file to Android.bp</title>
<updated>2019-01-25T05:16:39+00:00</updated>
<author>
<name>Sasha Smundak</name>
<email>asmundak@google.com</email>
</author>
<published>2019-01-25T05:16:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=3a62fc44e8022c4b838b222ed373d74cea17a2f8'/>
<id>3a62fc44e8022c4b838b222ed373d74cea17a2f8</id>
<content type='text'>
See build/soong/README.md for more information.

Bug: 122332380
Test: treehugger
Change-Id: I39a69c722922cfb19059d10ff37132442f0337ba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See build/soong/README.md for more information.

Bug: 122332380
Test: treehugger
Change-Id: I39a69c722922cfb19059d10ff37132442f0337ba
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix cert-dcl16-c clang-tidy warnings.</title>
<updated>2018-12-11T18:38:27+00:00</updated>
<author>
<name>Chih-Hung Hsieh</name>
<email>chh@google.com</email>
</author>
<published>2018-12-11T18:38:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=5d08f639507a20f688cb448a848e7789f20ac802'/>
<id>5d08f639507a20f688cb448a848e7789f20ac802</id>
<content type='text'>
Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: I069b2c861cf7c349445c15bf789908377fe7227f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: I069b2c861cf7c349445c15bf789908377fe7227f
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "libsparse: Add sparse typed callback"</title>
<updated>2018-07-26T05:23:45+00:00</updated>
<author>
<name>Tobias Thierer</name>
<email>tobiast@google.com</email>
</author>
<published>2018-07-26T03:13:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=fca4a9c27950a4a4281de0f413280cff9f4da653'/>
<id>fca4a9c27950a4a4281de0f413280cff9f4da653</id>
<content type='text'>
This reverts commit db69f0d47f3ccb3ff656c56fe2b68aaf5ab853f6.

Reason for revert: Broke the build:

In file included from system/core/libsparse/sparse.cpp:26:
system/core/libsparse/output_file.h:34:72: error: unknown type name 'off64_t'; did you mean 'off_t'?
int (*skip_write)(void*, off64_t), void* priv,
^~~~~~~
off_t
/Applications/Xcode6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_off_t.h:30:25: note: 'off_t' declared here
typedef __darwin_off_t off_t;
^
1 error generated.

Bug: 78793464
Change-Id: I0f8bc4e9aa2f74612bfd8721d00d961e3f7e695f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit db69f0d47f3ccb3ff656c56fe2b68aaf5ab853f6.

Reason for revert: Broke the build:

In file included from system/core/libsparse/sparse.cpp:26:
system/core/libsparse/output_file.h:34:72: error: unknown type name 'off64_t'; did you mean 'off_t'?
int (*skip_write)(void*, off64_t), void* priv,
^~~~~~~
off_t
/Applications/Xcode6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_off_t.h:30:25: note: 'off_t' declared here
typedef __darwin_off_t off_t;
^
1 error generated.

Bug: 78793464
Change-Id: I0f8bc4e9aa2f74612bfd8721d00d961e3f7e695f
</pre>
</div>
</content>
</entry>
<entry>
<title>libsparse: Add sparse typed callback</title>
<updated>2018-07-25T18:04:03+00:00</updated>
<author>
<name>Jerry Zhang</name>
<email>zhangjerry@google.com</email>
</author>
<published>2018-06-14T23:58:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=db69f0d47f3ccb3ff656c56fe2b68aaf5ab853f6'/>
<id>db69f0d47f3ccb3ff656c56fe2b68aaf5ab853f6</id>
<content type='text'>
Currently, sparse_file_callback uses libsparse's
own logic for reading a file into a buffer. However,
a caller may want to use their own logic for doing
this in order to customize the buffer size and parallelize
the reads/writes. Also, a caller may want to implement
fill blocks with their own logic as well. To do this
add sparse_file_typed_callback which calls a different
callback function depending on the type of the sparse
chunk being written.

Test: Use typed callback for fd writes
Bug: 78793464
Change-Id: I75955a464fc05991f806339830fdfa05fda354b9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, sparse_file_callback uses libsparse's
own logic for reading a file into a buffer. However,
a caller may want to use their own logic for doing
this in order to customize the buffer size and parallelize
the reads/writes. Also, a caller may want to implement
fill blocks with their own logic as well. To do this
add sparse_file_typed_callback which calls a different
callback function depending on the type of the sparse
chunk being written.

Test: Use typed callback for fd writes
Bug: 78793464
Change-Id: I75955a464fc05991f806339830fdfa05fda354b9
</pre>
</div>
</content>
</entry>
<entry>
<title>[libsparse] Modernize codebase by replacing NULL with nullptr</title>
<updated>2018-07-23T23:32:01+00:00</updated>
<author>
<name>Yi Kong</name>
<email>yikong@google.com</email>
</author>
<published>2018-07-23T23:31:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=17ba95ed9e65099db60e1e14ce6be51e87675707'/>
<id>17ba95ed9e65099db60e1e14ce6be51e87675707</id>
<content type='text'>
Fixes -Wzero-as-null-pointer-constant warning.

Test: m
Bug: 68236239
Change-Id: I43dae734817cae7a260ffc7afcd85fbd4451eddf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes -Wzero-as-null-pointer-constant warning.

Test: m
Bug: 68236239
Change-Id: I43dae734817cae7a260ffc7afcd85fbd4451eddf
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "libsparse: add OWNERS."</title>
<updated>2018-06-13T21:48:29+00:00</updated>
<author>
<name>Treehugger Robot</name>
<email>treehugger-gerrit@google.com</email>
</author>
<published>2018-06-13T21:48:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=06651fbe0275d0998f2f349d31c9f995a5dc52c9'/>
<id>06651fbe0275d0998f2f349d31c9f995a5dc52c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>libsparse: Add .clang-format and reformat to google3 style</title>
<updated>2018-06-13T20:32:24+00:00</updated>
<author>
<name>Jerry Zhang</name>
<email>zhangjerry@google.com</email>
</author>
<published>2018-06-12T23:42:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=7b444f08c17ed1b82ea1a1560e109c0a173e700f'/>
<id>7b444f08c17ed1b82ea1a1560e109c0a173e700f</id>
<content type='text'>
Bug: 78793464
Test: compiles
Change-Id: I8e44ba77195a12fc2bac7d4276bbc4aa95149b31
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 78793464
Test: compiles
Change-Id: I8e44ba77195a12fc2bac7d4276bbc4aa95149b31
</pre>
</div>
</content>
</entry>
<entry>
<title>libsparse: add OWNERS.</title>
<updated>2018-06-13T19:43:08+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2018-06-13T19:43:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=91e66ab14a74f22b3504d91fae64f5ec14160dcf'/>
<id>91e66ab14a74f22b3504d91fae64f5ec14160dcf</id>
<content type='text'>
Bug: N/A
Test: N/A
Change-Id: Ie26da2ff47de4cef20050b996a04d53c2b5c358f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: N/A
Test: N/A
Change-Id: Ie26da2ff47de4cef20050b996a04d53c2b5c358f
</pre>
</div>
</content>
</entry>
<entry>
<title>libsparse: Change source files to cpp</title>
<updated>2018-06-13T18:17:22+00:00</updated>
<author>
<name>Jerry Zhang</name>
<email>zhangjerry@google.com</email>
</author>
<published>2018-06-12T23:18:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=5a755077958dd4f7fb668a125b57dea8d85cd9a8'/>
<id>5a755077958dd4f7fb668a125b57dea8d85cd9a8</id>
<content type='text'>
Bug: 78793464
Test: compiles
Change-Id: Ib8b933fe3ccb8dfa49a77f7955891678bf0df086
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 78793464
Test: compiles
Change-Id: Ib8b933fe3ccb8dfa49a77f7955891678bf0df086
</pre>
</div>
</content>
</entry>
<entry>
<title>libsparse: Add method to create sparse file from buffer</title>
<updated>2018-06-07T21:33:18+00:00</updated>
<author>
<name>Jerry Zhang</name>
<email>zhangjerry@google.com</email>
</author>
<published>2018-06-05T18:44:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=50e6029a4e4b9c9bd6065548ced523ec5b01e705'/>
<id>50e6029a4e4b9c9bd6065548ced523ec5b01e705</id>
<content type='text'>
Refactor elements of sparse file parsing that depend on
an fd into SparseFileSource class, then create implementations
using both fd and buffer. Add sparse_file_read_buf which
reads the given buffer into a sparse file cookie without
copying.

Test: flash system with sparse images
Bug: 78793464
Change-Id: Ice6c8e1ff075d6867e070f80fcf5aa4f530a1b95
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refactor elements of sparse file parsing that depend on
an fd into SparseFileSource class, then create implementations
using both fd and buffer. Add sparse_file_read_buf which
reads the given buffer into a sparse file cookie without
copying.

Test: flash system with sparse images
Bug: 78793464
Change-Id: Ice6c8e1ff075d6867e070f80fcf5aa4f530a1b95
</pre>
</div>
</content>
</entry>
</feed>
