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

Issue 160479: Support files larger than 2GB (Closed)

Created:
11 years, 4 months ago by vandebo.gmail
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, tony, agl, Evan Martin
CC:
chromium-reviews_googlegroups.com, John Grabowski, brettw
Visibility:
Public.

Description

Define _FILE_OFFSET_BITS=64 in order to support large files (>2GB). _FILE_OFFSET_BITS=64 is incompatible with fts (issue 17492), so file_util::Delete, file_util::CopyDirectory file_util::FileEnumerator are reimplemented without fts. Delete and CopyDirectory are now implemented using FileEnumerator. BUG=13718, 17492 TEST=none committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22670

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 7

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -277 lines) Patch
M base/file_util.h View 3 chunks +21 lines, -5 lines 0 comments Download
M base/file_util_posix.cc View 1 2 3 4 8 chunks +173 lines, -201 lines 0 comments Download
M base/test_file_util_posix.cc View 3 chunks +53 lines, -71 lines 0 comments Download
M build/common.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
vandebo.gmail
A small code review to allow downloads of >2G files on Linux.
11 years, 4 months ago (2009-07-31 21:34:32 UTC) #1
Evan Martin
I think agl needs to review this. He looked into solving this before and didn't ...
11 years, 4 months ago (2009-07-31 21:37:49 UTC) #2
Lei Zhang
On 2009/07/31 21:34:32, vandebo wrote: > A small code review to allow downloads of >2G ...
11 years, 4 months ago (2009-07-31 21:38:14 UTC) #3
vandebo.gmail
That may be why agl didn't go this way... It seems (and I was unaware) ...
11 years, 4 months ago (2009-07-31 21:51:23 UTC) #4
vandebo.gmail
This change discontinues the use of FTS in order to globally enable large file support.
11 years, 4 months ago (2009-08-06 04:13:26 UTC) #5
agl
Seem comments below, also make sure that it passes the try bots first. Generally, LGTM. ...
11 years, 4 months ago (2009-08-06 17:34:57 UTC) #6
vandebo.gmail
Updated version passes try servers. http://codereview.chromium.org/160479/diff/2012/3011 File base/file_util_posix.cc (right): http://codereview.chromium.org/160479/diff/2012/3011#newcode178 Line 178: current = traversal.Next()) ...
11 years, 4 months ago (2009-08-06 20:03:46 UTC) #7
agl
11 years, 4 months ago (2009-08-06 20:04:53 UTC) #8
LGTM

http://codereview.chromium.org/160479/diff/2012/3011
File base/file_util_posix.cc (right):

http://codereview.chromium.org/160479/diff/2012/3011#newcode635
Line 635: while (readdir_r(dir, &dent_buf, &dent) == 0 && dent) {
On 2009/08/06 20:03:46, vandebo wrote:
> portable, how about:

Sure thing.

Powered by Google App Engine
This is Rietveld 408576698