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

Unified Diff: delta_diff_generator.h

Issue 5684002: Add support for bsdiff of file system metadata blocks (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Addressed code review feedbacks Created 10 years 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 | « SConstruct ('k') | delta_diff_generator.cc » ('j') | test_utils.h » ('J')
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 50a3a89ed4d423fcd9b3a93ea3094cec3bb3bd27..d02de48c0dedea9228320bf40c40d043f68fbd25 100644
--- a/delta_diff_generator.h
+++ b/delta_diff_generator.h
@@ -213,6 +213,25 @@ class DeltaDiffGenerator {
const std::string& partition,
PartitionInfo* info);
+ // Runs the bsdiff tool on two files and returns the resulting delta in
+ // |out|. Returns true on success.
+ static bool BsdiffFiles(const std::string& old_file,
+ const std::string& new_file,
+ std::vector<char>* out);
+
+ // The |blocks| vector contains a reader and writer for each block on the
+ // filesystem that's being in-place updated. We populate the reader/writer
+ // fields of |blocks| by calling this function.
+ // For each block in |operation| that is read or written, find that block
+ // in |blocks| and set the reader/writer field to the vertex passed.
+ // |graph| is not strictly necessary, but useful for printing out
+ // error messages.
+ static bool AddInstallOpToBlocksVector(
+ const DeltaArchiveManifest_InstallOperation& operation,
+ const Graph& graph,
+ Vertex::Index vertex,
+ std::vector<DeltaDiffGenerator::Block>* blocks);
+
private:
// This should never be constructed
DISALLOW_IMPLICIT_CONSTRUCTORS(DeltaDiffGenerator);
« no previous file with comments | « SConstruct ('k') | delta_diff_generator.cc » ('j') | test_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698