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

Issue 6990066: Mac TimeMachine File Exclusions (Closed)

Created:
9 years, 7 months ago by mrossetti
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Mac SQLite TimeMachine File Exclusions When an SQLite database has been excluded from Time Machine backups also exclude its -journal. (In fts3_porter.c: had to rename the cType due to a conflict with an included Apple library.) BUG=74053 TEST=Manually: 1) Launch browser. 2) Run the following command: /usr/bin/xattr-2.6 ~/Library/Application\ Support/Chromium/Default/History-journal 3) Verify that the following is shown as one of the results of running the xattr-2.6 command: com.apple.metadata:com_apple_backup_excludeItem Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87391

Patch Set 1 #

Total comments: 35

Patch Set 2 : '' #

Total comments: 20

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 12

Patch Set 7 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -11 lines) Patch
M third_party/sqlite/README.chromium View 1 2 3 4 5 3 chunks +12 lines, -5 lines 0 comments Download
M third_party/sqlite/amalgamation/sqlite3.c View 6 chunks +42 lines, -3 lines 0 comments Download
A third_party/sqlite/mac_time_machine.patch View 1 2 3 4 5 6 1 chunk +100 lines, -0 lines 0 comments Download
M third_party/sqlite/src/ext/fts3/fts3_porter.c View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/sqlite/src/src/pager.c View 1 2 3 4 5 6 2 chunks +29 lines, -0 lines 1 comment Download
M third_party/sqlite/src/src/sqliteInt.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
mrossetti
Note that this patch has been tested against SQLite 3.6.18, which is the base for ...
9 years, 7 months ago (2011-05-24 22:16:24 UTC) #1
Scott Hess - ex-Googler
The SQLite change sort of frightens me. AFAICT, it's there because the file needs to ...
9 years, 7 months ago (2011-05-24 22:49:27 UTC) #2
Mark Mentovai
I’m Not Scared. http://codereview.chromium.org/6990066/diff/1/base/mac/mac_util.mm File base/mac/mac_util.mm (right): http://codereview.chromium.org/6990066/diff/1/base/mac/mac_util.mm#newcode241 base/mac/mac_util.mm:241: bool SetFileBackupExclusion(const FilePath& file_path, bool exclude) ...
9 years, 7 months ago (2011-05-25 01:14:34 UTC) #3
Paweł Hajdan Jr.
Drive-by with an upstreaming comment: could you send the patch upstream? Just making sure - ...
9 years, 7 months ago (2011-05-25 09:19:34 UTC) #4
Mark Mentovai
phajdan.jr@chromium.org wrote: > Drive-by with an upstreaming comment: could you send the patch upstream? Just ...
9 years, 7 months ago (2011-05-25 13:06:32 UTC) #5
Paweł Hajdan Jr.
On 2011/05/25 13:06:32, Mark Mentovai wrote: > I suspect this wouldn’t be of interest upstream. ...
9 years, 7 months ago (2011-05-25 13:44:55 UTC) #6
Avi (use Gerrit)
http://codereview.chromium.org/6990066/diff/1/third_party/sqlite/src/src/pager.c File third_party/sqlite/src/src/pager.c (right): http://codereview.chromium.org/6990066/diff/1/third_party/sqlite/src/src/pager.c#newcode4082 third_party/sqlite/src/src/pager.c:4082: sqlite3_free(database_path); Drive-by: Use of the NoCopy functions from CF ...
9 years, 7 months ago (2011-05-25 14:22:16 UTC) #7
mrossetti
Ready for the next go. http://codereview.chromium.org/6990066/diff/1/base/mac/mac_util.mm File base/mac/mac_util.mm (right): http://codereview.chromium.org/6990066/diff/1/base/mac/mac_util.mm#newcode241 base/mac/mac_util.mm:241: bool SetFileBackupExclusion(const FilePath& file_path, ...
9 years, 7 months ago (2011-05-26 21:02:40 UTC) #8
Mark Mentovai
Close. You’ve still got a leak. http://codereview.chromium.org/6990066/diff/1/chrome/browser/history/history_database.cc File chrome/browser/history/history_database.cc (right): http://codereview.chromium.org/6990066/diff/1/chrome/browser/history/history_database.cc#newcode100 chrome/browser/history/history_database.cc:100: // Exclude the ...
9 years, 7 months ago (2011-05-26 21:23:40 UTC) #9
Scott Hess - ex-Googler
I noticed problems with the Apple headers putting garbage into the global namespace in my ...
9 years, 7 months ago (2011-05-26 21:30:54 UTC) #10
Scott Hess - ex-Googler
http://codereview.chromium.org/6990066/diff/10001/third_party/sqlite/README.chromium File third_party/sqlite/README.chromium (right): http://codereview.chromium.org/6990066/diff/10001/third_party/sqlite/README.chromium#newcode21 third_party/sqlite/README.chromium:21: BASE=3070603 On 2011/05/26 21:23:40, Mark Mentovai wrote: > Whether ...
9 years, 7 months ago (2011-05-26 22:05:07 UTC) #11
Mark Mentovai
http://codereview.chromium.org/6990066/diff/10001/third_party/sqlite/README.chromium File third_party/sqlite/README.chromium (right): http://codereview.chromium.org/6990066/diff/10001/third_party/sqlite/README.chromium#newcode21 third_party/sqlite/README.chromium:21: BASE=3070603 shess wrote: > On 2011/05/26 21:23:40, Mark Mentovai ...
9 years, 7 months ago (2011-05-26 22:14:22 UTC) #12
Scott Hess - ex-Googler
#WINNING On Thu, May 26, 2011 at 3:14 PM, <mark@chromium.org> wrote: > > http://codereview.chromium.org/6990066/diff/10001/third_party/sqlite/README.chromium > ...
9 years, 7 months ago (2011-05-26 22:17:55 UTC) #13
mrossetti
Mark, do you have a different opinion about the exclude-by-path comment I made in pager.c? ...
9 years, 7 months ago (2011-05-27 17:11:36 UTC) #14
Mark Mentovai
mrossetti@chromium.org wrote: > Mark, do you have a different opinion about the exclude-by-path comment I ...
9 years, 7 months ago (2011-05-27 17:17:14 UTC) #15
Mark Mentovai
LG otherwise. http://codereview.chromium.org/6990066/diff/17001/third_party/sqlite/README.chromium File third_party/sqlite/README.chromium (right): http://codereview.chromium.org/6990066/diff/17001/third_party/sqlite/README.chromium#newcode184 third_party/sqlite/README.chromium:184: sqliteInt.h. In order to eliminate a symbol ...
9 years, 7 months ago (2011-05-27 17:20:37 UTC) #16
Scott Hess - ex-Googler
On 2011/05/27 17:17:14, Mark Mentovai wrote: > mailto:mrossetti@chromium.org wrote: > > Mark, do you have ...
9 years, 7 months ago (2011-05-27 17:23:34 UTC) #17
Mark Mentovai
shess@chromium.org wrote: > I do not fully understand what's going on here, but as far ...
9 years, 7 months ago (2011-05-27 17:38:35 UTC) #18
mrossetti
I believe Mark and I are in agreement with excluding the -journal !by-path if the ...
9 years, 7 months ago (2011-05-27 19:20:35 UTC) #19
Scott Hess - ex-Googler
LGTM. BTW, one thing I am considering in rewriting the README.Chromium is whether I shouldn't ...
9 years, 7 months ago (2011-05-27 19:32:43 UTC) #20
Mark Mentovai
LGTM (from a 3-inch screen, but I think I was able to read everything.) I ...
9 years, 7 months ago (2011-05-27 20:04:08 UTC) #21
mrossetti
On 2011/05/27 19:32:43, shess wrote: > LGTM. > > BTW, one thing I am considering ...
9 years, 7 months ago (2011-05-27 21:17:12 UTC) #22
Scott Hess - ex-Googler
Still LGTM! I promise not to intentionally nominate you for the next SQLite import :-).
9 years, 7 months ago (2011-05-27 21:41:23 UTC) #23
Mark Mentovai
Sticky LGTM
9 years, 7 months ago (2011-05-27 21:44:52 UTC) #24
Scott Hess - ex-Googler
I was letting the style go, because I'm honestly not entirely sure I can mentally ...
9 years, 6 months ago (2011-05-31 19:52:25 UTC) #25
mrossetti
Just to let you know that I cleaned up the style issues. http://codereview.chromium.org/6990066/diff/25001/third_party/sqlite/src/src/pager.c File third_party/sqlite/src/src/pager.c ...
9 years, 6 months ago (2011-05-31 23:11:36 UTC) #26
Scott Hess - ex-Googler
9 years, 6 months ago (2011-06-01 01:12:09 UTC) #27
LGTM.

BTW, if you're interested in style for purposes of submitting the patch
upstream, note that often such patches get rewritten/refactored by the SQLite
team anyhow.  So I wouldn't go too far in getting it perfect.

http://codereview.chromium.org/6990066/diff/30001/third_party/sqlite/src/src/...
File third_party/sqlite/src/src/pager.c (right):

http://codereview.chromium.org/6990066/diff/30001/third_party/sqlite/src/src/...
third_party/sqlite/src/src/pager.c:5137: static CFURLRef
create_cfurl_from_cstring(const char* filePath){
I'm fine with this, but pedantic would be zFilename or zPathname.  z ==
nul-terminated char*.

Also, looking around, looks like SQLite has the space on the left of the *
("const char *zFilename" rather than "const char* zFilename").

Powered by Google App Engine
This is Rietveld 408576698