diff options
author | Justin DeMartino <jjdemartino@google.com> | 2020-10-14 19:39:53 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-10-14 19:39:53 +0000 |
commit | 0d11af03e43f110b0bb160f7e20436d0043e3038 (patch) | |
tree | 48f8bcca856276ec73a86dd3fb26143d3ca64578 /libsparse/sparse.cpp | |
parent | 075666ebd0dee8d0c4a2efa54f7c324a3f67ee2a (diff) | |
parent | a6c01e4e98d2b343dcecfc99611e2e6250c730db (diff) |
Merge changes from topic "SP1A.200921.001" into s-keystone-qcom-dev
* changes:
fs_mgr: adb-remount-test.sh: filter out more administrivia mounts.
Merge SP1A.200921.001 Change-Id: I90b97c4e9fb10b1f45e74def404823eed5b1aaa8
Diffstat (limited to 'libsparse/sparse.cpp')
-rw-r--r-- | libsparse/sparse.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsparse/sparse.cpp b/libsparse/sparse.cpp index 8622b4c39..396e7eb0c 100644 --- a/libsparse/sparse.cpp +++ b/libsparse/sparse.cpp @@ -50,21 +50,21 @@ void sparse_file_destroy(struct sparse_file* s) { free(s); } -int sparse_file_add_data(struct sparse_file* s, void* data, unsigned int len, unsigned int block) { +int sparse_file_add_data(struct sparse_file* s, void* data, uint64_t len, unsigned int block) { return backed_block_add_data(s->backed_block_list, data, len, block); } -int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, unsigned int len, +int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, uint64_t len, unsigned int block) { return backed_block_add_fill(s->backed_block_list, fill_val, len, block); } int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset, - unsigned int len, unsigned int block) { + uint64_t len, unsigned int block) { return backed_block_add_file(s->backed_block_list, filename, file_offset, len, block); } -int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, unsigned int len, +int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, uint64_t len, unsigned int block) { return backed_block_add_fd(s->backed_block_list, fd, file_offset, len, block); } |