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

Issue 1694025: AU: Update Downloader to support our image formats. (Closed)

Created:
10 years, 7 months ago by adlr
Modified:
9 years ago
Reviewers:
Daniel Erat
CC:
chromium-os-reviews_chromium.org, dneiss, adlr
Base URL:
ssh://git@chromiumos-git/chromeos
Visibility:
Public.

Description

AU: Update Downloader to support our image formats. The downloader used to be dumb in the sense that it would pipe output to either a DirectFileWriter or a DirectFileWriter via a GzipDecompressingFileWriter, depending on if we were downloading an update that was compressed or not. Sadly, things have gotten more complex: we need to download to two partitions (kernel + rootfs), and we may stream data via a DeltaPerformer (a type of FileWriter) to the disk. Thus, the Downloader streams to either 1. gzip decompress->split_writer->direct to disk OR 2. delta performer Other misc changes: Change FilesystemCopierAction to support optionally copying the kernel partition rather than root partition. InstallPlan struct: add an entry for destiation kernel partition. Test Utils: a new ScopedTempFile class Utils: support for getting the booted kernel partition device. BUG=None TEST=attached unittests

Patch Set 1 #

Total comments: 6

Patch Set 2 : fixes for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -102 lines) Patch
M src/platform/update_engine/download_action.h View 1 3 chunks +24 lines, -22 lines 0 comments Download
M src/platform/update_engine/download_action.cc View 2 chunks +40 lines, -23 lines 0 comments Download
M src/platform/update_engine/download_action_unittest.cc View 8 chunks +32 lines, -27 lines 0 comments Download
M src/platform/update_engine/filesystem_copier_action.h View 2 chunks +7 lines, -2 lines 0 comments Download
M src/platform/update_engine/filesystem_copier_action.cc View 1 1 chunk +11 lines, -5 lines 0 comments Download
M src/platform/update_engine/filesystem_copier_action_unittest.cc View 8 chunks +20 lines, -12 lines 0 comments Download
M src/platform/update_engine/install_plan.h View 2 chunks +9 lines, -4 lines 0 comments Download
M src/platform/update_engine/split_file_writer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/platform/update_engine/test_utils.h View 3 chunks +17 lines, -1 line 0 comments Download
M src/platform/update_engine/update_attempter.cc View 3 chunks +9 lines, -2 lines 0 comments Download
M src/platform/update_engine/utils.h View 1 1 chunk +9 lines, -1 line 0 comments Download
M src/platform/update_engine/utils.cc View 1 2 chunks +16 lines, -1 line 0 comments Download
M src/platform/update_engine/utils_unittest.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years, 7 months ago (2010-05-01 02:44:42 UTC) #1
Daniel Erat
LGTM with a few comments http://codereview.chromium.org/1694025/diff/1/3 File src/platform/update_engine/download_action.h (right): http://codereview.chromium.org/1694025/diff/1/3#newcode31 src/platform/update_engine/download_action.h:31: // update goes from. ...
10 years, 7 months ago (2010-05-02 18:45:53 UTC) #2
adlr
10 years, 7 months ago (2010-05-03 18:11:23 UTC) #3
Thanks for the review. Fixed and submitted.

http://codereview.chromium.org/1694025/diff/1/3
File src/platform/update_engine/download_action.h (right):

http://codereview.chromium.org/1694025/diff/1/3#newcode31
src/platform/update_engine/download_action.h:31: // update goes from. In this
case, the updat will be piped into a
On 2010/05/02 18:45:53, Daniel Erat wrote:
> s/updat/update/

Done.

http://codereview.chromium.org/1694025/diff/1/3#newcode88
src/platform/update_engine/download_action.h:88: // Used to write out the
downloaded file
On 2010/05/02 18:45:53, Daniel Erat wrote:
> Should this be something like "Used to apply delta updates" instead?

Done. (slight wording change)

http://codereview.chromium.org/1694025/diff/1/13
File src/platform/update_engine/utils.h (right):

http://codereview.chromium.org/1694025/diff/1/13#newcode146
src/platform/update_engine/utils.h:146: const std::string BootKernelDevice(const
std::string& boot_device);
On 2010/05/02 18:45:53, Daniel Erat wrote:
> making this distinction between testing and non-testing code is kinda ugly. 
> could you make the 'boot_device' argument mandatory for real clients too, and
> just pass BootDevice() explicitly?

Done.

Powered by Google App Engine
This is Rietveld 408576698