Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: delta_diff_generator.h

Issue 3550020: AU: support for generating new style full updates. (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: fixes for review Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | delta_diff_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_diff_generator.h
diff --git a/delta_diff_generator.h b/delta_diff_generator.h
index 9362b55ff3af26c79bdb16b3952991bb5e842415..bebe122495c7516d327e6d6c47ce324ad2ac533f 100644
--- a/delta_diff_generator.h
+++ b/delta_diff_generator.h
@@ -193,6 +193,21 @@ class DeltaDiffGenerator {
std::vector<std::vector<Vertex::Index>::size_type>* reverse_op_indexes,
std::vector<CutEdgeVertexes>& cuts);
+ // Given a new rootfs and kernel (|new_image|, |new_kernel_part|),
+ // Reads them sequentially, creating a full update of chunk_size chunks.
+ // Populates |graph|, |kernel_ops|, and |final_order|, with data
+ // about the update operations, and writes relevant data to |fd|,
+ // updating |data_file_size| as it does.
+ static bool ReadFullUpdateFromDisk(
+ Graph* graph,
+ const std::string& new_kernel_part,
+ const std::string& new_image,
+ int fd,
+ off_t* data_file_size,
+ off_t chunk_size,
+ std::vector<DeltaArchiveManifest_InstallOperation>* kernel_ops,
+ std::vector<Vertex::Index>* final_order);
+
private:
// This should never be constructed
DISALLOW_IMPLICIT_CONSTRUCTORS(DeltaDiffGenerator);
« no previous file with comments | « no previous file | delta_diff_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698