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

Issue 6551015: AU: When checking if we've visited a file before, don't follow symlinks. (Closed)

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

Description

AU: When checking if we've visited a file before, don't follow symlinks. A bug caused a failure when a file existed on the old image that was a symlink to a non-existent path. This CL fixes that bug. BUG=chromium-os:12393 TEST=unittests/generated and tested a delta Change-Id: Ifba711be2bfc3c1d96a4ed8536b16b5d7b8a0cae Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=48a0a48

Patch Set 1 #

Total comments: 4

Patch Set 2 : unittest #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M delta_diff_generator.cc View 1 chunk +4 lines, -4 lines 1 comment Download
M delta_performer_unittest.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M test_utils.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
adlr
9 years, 10 months ago (2011-02-22 19:52:19 UTC) #1
petkov
LGTM w/ a comment below. http://codereview.chromium.org/6551015/diff/1/delta_diff_generator.cc File delta_diff_generator.cc (right): http://codereview.chromium.org/6551015/diff/1/delta_diff_generator.cc#newcode174 delta_diff_generator.cc:174: struct stat src_stbuf; so, ...
9 years, 10 months ago (2011-02-22 20:04:04 UTC) #2
adlr
replied to comments and added a unittest. PTAL. http://codereview.chromium.org/6551015/diff/1/delta_diff_generator.cc File delta_diff_generator.cc (right): http://codereview.chromium.org/6551015/diff/1/delta_diff_generator.cc#newcode174 delta_diff_generator.cc:174: struct ...
9 years, 10 months ago (2011-02-22 23:21:48 UTC) #3
petkov
9 years, 10 months ago (2011-02-22 23:25:32 UTC) #4
LGTM

http://codereview.chromium.org/6551015/diff/3001/delta_diff_generator.cc
File delta_diff_generator.cc (right):

http://codereview.chromium.org/6551015/diff/3001/delta_diff_generator.cc#newc...
delta_diff_generator.cc:164: // We can't visit each dst image inode more than
once, as that would
Update the comment to reflect the fact that we never diff symlinks...

Powered by Google App Engine
This is Rietveld 408576698