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

Issue 5548002: AU: When generating delta, use scratch off end of filesystem (Closed)

Created:
10 years ago by adlr
Modified:
9 years ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Visibility:
Public.

Description

AU: When generating delta, use scratch off end of filesystem This idea was originally coded by Darin Petkov, but was lost during a separate bug fix a while ago. This CL restores the functionality. The partition limit is set to 1GiB right now. BUG=7444 TEST=tested generating/applying on host and checking results; unittest; tested specific case 110.9->128.4 that release engineers saw Change-Id: I28a9a8d7025b83ec20b91e97dce5b783fc060b7c Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=927179d

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -5 lines) Patch
M delta_diff_generator.h View 2 chunks +11 lines, -1 line 2 comments Download
M delta_diff_generator.cc View 7 chunks +36 lines, -3 lines 4 comments Download
M delta_diff_generator_unittest.cc View 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years ago (2010-12-02 02:23:23 UTC) #1
petkov
Thanks for the quick turnaround. Some nits below. Also, did you test on the 110.9->128.4 ...
10 years ago (2010-12-02 05:04:06 UTC) #2
adlr
10 years ago (2010-12-02 19:21:41 UTC) #3
updated TEST= to show i did try that test case.

also did your suggestions and will soon push. thanks

http://codereview.chromium.org/5548002/diff/1/delta_diff_generator.cc
File delta_diff_generator.cc (right):

http://codereview.chromium.org/5548002/diff/1/delta_diff_generator.cc#newcode57
delta_diff_generator.cc:57: const size_t kRootFSPartitionSize = 1 * 1024 * 1024
* 1024;  // bytes
On 2010/12/02 05:04:06, petkov wrote:
> This is an obsolete dupe now? Remove.

Oops missed this. I decided to use this and not make the other

http://codereview.chromium.org/5548002/diff/1/delta_diff_generator.cc#newcode60
delta_diff_generator.cc:60: const uint64_t kRootfsPartitionSize = 1024 * 1024 *
1024;  // bytes
On 2010/12/02 05:04:06, petkov wrote:
> Add a TODO to increase this to 2GiB when we stop caring about 1GiB devices any
> more.

Done.

http://codereview.chromium.org/5548002/diff/1/delta_diff_generator.h
File delta_diff_generator.h (right):

http://codereview.chromium.org/5548002/diff/1/delta_diff_generator.h#newcode106
delta_diff_generator.h:106: // Creates a dummy REPLACE_BZ node in the given
vertex. This can be used
On 2010/12/02 05:04:06, petkov wrote:
> I assume there's no difference if it's REPLACE_BZ vs. REPLACE, the only point
is
> that it needs to be a write-only node?

Correct.

> 
> Maybe change to "in the given |vertex|." and describe that the node writes
> |num_blocks| blocks starting at |start_block|.

Done.

Powered by Google App Engine
This is Rietveld 408576698