diff options
author | Sen Jiang <senj@chromium.org> | 2015-08-10 10:04:54 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-13 21:40:57 +0000 |
commit | 8cc502dacbccdab96824d42287f230ce04004784 (patch) | |
tree | 1e5cf087e09bb55ee76545414385d18c1f8478fc /payload_generator/delta_diff_utils.h | |
parent | 535f3b738b0bcbca23a6e361c84bf84145d6a3e6 (diff) |
update_engine: Change OperationsGenerator to use BlobFileWriter
BUG=chromium:517280
TEST=Unit test for BlobFileWriter
Change-Id: Ib49925676331acee97ff6b4cec38a81ca8b157a1
Reviewed-on: https://chromium-review.googlesource.com/291441
Tested-by: Sen Jiang <senj@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'payload_generator/delta_diff_utils.h')
-rw-r--r-- | payload_generator/delta_diff_utils.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/payload_generator/delta_diff_utils.h b/payload_generator/delta_diff_utils.h index dc837b05..e3acdf41 100644 --- a/payload_generator/delta_diff_utils.h +++ b/payload_generator/delta_diff_utils.h @@ -35,8 +35,7 @@ bool DeltaReadPartition(std::vector<AnnotatedOperation>* aops, const PartitionConfig& new_part, ssize_t hard_chunk_blocks, size_t soft_chunk_blocks, - int data_fd, - off_t* data_file_size, + BlobFileWriter* blob_file, bool src_ops_allowed); // Create operations in |aops| for identical blocks that moved around in the old @@ -57,8 +56,7 @@ bool DeltaMovedAndZeroBlocks(std::vector<AnnotatedOperation>* aops, size_t new_num_blocks, ssize_t chunk_blocks, bool src_ops_allowed, - int data_fd, - off_t* data_file_size, + BlobFileWriter* blob_file, ExtentRanges* old_visited_blocks, ExtentRanges* new_visited_blocks); @@ -77,8 +75,7 @@ bool DeltaReadFile(std::vector<AnnotatedOperation>* aops, const std::vector<Extent>& new_extents, const std::string& name, ssize_t chunk_blocks, - int data_fd, - off_t* data_file_size, + BlobFileWriter* blob_file, bool src_ops_allowed); // Reads the blocks |old_extents| from |old_part| (if it exists) and the |