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

Issue 1700018: AU: FilesystemCopierAction: copy bit-exactly (Closed)

Created:
10 years, 8 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: FilesystemCopierAction: copy bit-exactly

Patch Set 1 #

Total comments: 10

Patch Set 2 : fixes for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -435 lines) Patch
M src/platform/update_engine/SConstruct View 2 chunks +3 lines, -1 line 0 comments Download
M src/platform/update_engine/filesystem_copier_action.h View 1 4 chunks +43 lines, -88 lines 0 comments Download
M src/platform/update_engine/filesystem_copier_action.cc View 1 3 chunks +111 lines, -247 lines 0 comments Download
M src/platform/update_engine/filesystem_copier_action_unittest.cc View 7 chunks +90 lines, -90 lines 0 comments Download
M src/platform/update_engine/testrunner.cc View 1 chunk +8 lines, -1 line 0 comments Download
M src/platform/update_engine/update_engine_client.cc View 1 4 chunks +3 lines, -8 lines 0 comments Download
M src/platform/update_engine/utils.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/platform/update_engine/utils.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
adlr
10 years, 8 months ago (2010-04-28 04:52:24 UTC) #1
Daniel Erat
LGTM with some comments http://codereview.chromium.org/1700018/diff/1/3 File src/platform/update_engine/filesystem_copier_action.cc (right): http://codereview.chromium.org/1700018/diff/1/3#newcode150 src/platform/update_engine/filesystem_copier_action.cc:150: else need curly braces for ...
10 years, 8 months ago (2010-04-28 14:58:35 UTC) #2
adlr
10 years, 8 months ago (2010-04-28 17:47:55 UTC) #3
thanks for the review!

fixed and submitted.

http://codereview.chromium.org/1700018/diff/1/3
File src/platform/update_engine/filesystem_copier_action.cc (right):

http://codereview.chromium.org/1700018/diff/1/3#newcode150
src/platform/update_engine/filesystem_copier_action.cc:150: else
On 2010/04/28 14:58:35, Daniel Erat wrote:
> need curly braces for this if-else, since the else statement is more than one
> line

Done.

http://codereview.chromium.org/1700018/diff/1/4
File src/platform/update_engine/filesystem_copier_action.h (right):

http://codereview.chromium.org/1700018/diff/1/4#newcode82
src/platform/update_engine/filesystem_copier_action.h:82: GCancellable*
cancellable_;
On 2010/04/28 14:58:35, Daniel Erat wrote:
> might be better named as 'cancellable_object_' or 'canceller_' or something,
to
> make it clear from the name that it's not describing whether something is
> cancellable or not.

Done.

http://codereview.chromium.org/1700018/diff/1/4#newcode85
src/platform/update_engine/filesystem_copier_action.h:85: bool read_in_flight_;
On 2010/04/28 14:58:35, Daniel Erat wrote:
> i was tricked by this comment at first.  could you change it to something like
> "True if we're waiting on a read to complete; false if we're waiting on a
> write."?  (i read the comment as saying that it's true if we're waiting on a
> read *or* a write)

Ooops. fixed.

http://codereview.chromium.org/1700018/diff/1/4#newcode91
src/platform/update_engine/filesystem_copier_action.h:91:
std::vector<char>::size_type buffer_valid_;
On 2010/04/28 14:58:35, Daniel Erat wrote:
> rename to something like 'buffer_valid_size_' or 'num_bytes_in_buffer_'; the
> current name makes me think it's going to be a bool.

Done.

http://codereview.chromium.org/1700018/diff/1/7
File src/platform/update_engine/update_engine_client.cc (right):

http://codereview.chromium.org/1700018/diff/1/7#newcode44
src/platform/update_engine/update_engine_client.cc:44: <<
chromeos_update_engine::utils::GetGErrorMessage(error);
On 2010/04/28 14:58:35, Daniel Erat wrote:
> add a "using chromeos_update_engine::utils::GetGErrorMessage"?

Done.

Powered by Google App Engine
This is Rietveld 408576698