|
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
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+211 lines, -102 lines) |
Patch |
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/download_action.h
|
View
|
1
|
3 chunks |
+24 lines, -22 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/download_action.cc
|
View
|
|
2 chunks |
+40 lines, -23 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/download_action_unittest.cc
|
View
|
|
8 chunks |
+32 lines, -27 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/filesystem_copier_action.h
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/filesystem_copier_action.cc
|
View
|
1
|
1 chunk |
+11 lines, -5 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/filesystem_copier_action_unittest.cc
|
View
|
|
8 chunks |
+20 lines, -12 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/install_plan.h
|
View
|
|
2 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/split_file_writer.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/test_utils.h
|
View
|
|
3 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/update_attempter.cc
|
View
|
|
3 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/utils.h
|
View
|
1
|
1 chunk |
+9 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/utils.cc
|
View
|
1
|
2 chunks |
+16 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
src/platform/update_engine/utils_unittest.cc
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|