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

Issue 3588015: AU: Include the old/new kernel/rootfs size/hash in the update metadata. (Closed)

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

Description

AU: Include the old/new kernel/rootfs size/hash in the update metadata. This is the server side change. BUG=7348 TEST=unit test Change-Id: I956e056826dbb13b0f97509f9992ebcedb48ea42 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=36a5822

Patch Set 1 #

Patch Set 2 : whitespaces #

Patch Set 3 : no need to close negative handles #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -23 lines) Patch
M delta_diff_generator.cc View 1 12 chunks +55 lines, -14 lines 0 comments Download
M delta_performer_unittest.cc View 2 chunks +6 lines, -1 line 0 comments Download
M omaha_hash_calculator.h View 2 chunks +8 lines, -2 lines 0 comments Download
M omaha_hash_calculator.cc View 1 2 2 chunks +33 lines, -1 line 2 comments Download
M omaha_hash_calculator_unittest.cc View 4 chunks +41 lines, -4 lines 0 comments Download
M update_metadata.proto View 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
petkov
Do we need to bump any version number? Also, a slight issue is that we ...
10 years, 2 months ago (2010-10-08 00:32:47 UTC) #1
adlr
LGTM No version number bump needed, since this is all backward compatible. As for the ...
10 years, 2 months ago (2010-10-08 01:21:58 UTC) #2
adlr
On Thu, Oct 7, 2010 at 6:21 PM, <adlr@chromium.org> wrote: > LGTM > > No ...
10 years, 2 months ago (2010-10-08 02:04:52 UTC) #3
petkov
10 years, 2 months ago (2010-10-08 04:14:29 UTC) #4
Thanks, I'll submit this server side change then.

http://codereview.chromium.org/3588015/diff/4001/5003
File omaha_hash_calculator.cc (right):

http://codereview.chromium.org/3588015/diff/4001/5003#newcode52
omaha_hash_calculator.cc:52: ssize_t rc = HANDLE_EINTR(read(fd, &buffer[0],
bytes_to_read));
On 2010/10/08 01:21:58, adlr wrote:
> I never heard of HANDLE_EINTR and just looked it up. What's the deal w/ it?

open/read/close can theoretically (but somewhat unlikely) be  interrupted by
system calls and return -1 with errno set to EINTR. In these cases you have to
reinvoke the calls. HANDLE_EINTR is a macro in libbase that wraps the system
calls so you don't have to explicitly check and re-invoke them when they're
interrupted -- it does it for you.

Powered by Google App Engine
This is Rietveld 408576698