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

Issue 9910005: Add database recovery for FileSystemDirectoryDatabase. (Closed)

Created:
8 years, 8 months ago by tzik
Modified:
8 years, 8 months ago
CC:
chromium-reviews, kinuko+watch, darin-cc_chromium.org, michaeln
Visibility:
Public.

Description

Add database recovery for FileSystemDirectoryDatabase. BUG=103018, 116615 TEST='FileSystemDirectoryDatabaseTest.*' Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132369

Patch Set 1 #

Patch Set 2 : +tests #

Patch Set 3 : '' #

Patch Set 4 : -TODO #

Total comments: 25

Patch Set 5 : +tests #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : +cleanup extra/lost backing file (not for commit yet) #

Patch Set 8 : enable extra/lost file cleanup #

Patch Set 9 : test fix & build fix for windows #

Patch Set 10 : build fix #

Patch Set 11 : build fix for windows #

Patch Set 12 : +NormalizePathSeparators #

Total comments: 16

Patch Set 13 : +comments #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -93 lines) Patch
A webkit/fileapi/file_system_database_test_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +23 lines, -0 lines 0 comments Download
A webkit/fileapi/file_system_database_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +84 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_directory_database.h View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_directory_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +307 lines, -14 lines 0 comments Download
M webkit/fileapi/file_system_directory_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +240 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_origin_database_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -68 lines 0 comments Download
M webkit/fileapi/file_system_usage_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_system_usage_cache.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_usage_cache_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
tzik
Hi. I implemented fsck for FileSystemDirectoryDatabase and database recovery. Could you review this CL?
8 years, 8 months ago (2012-04-02 08:22:04 UTC) #1
ericu
Very good start--thanks! http://codereview.chromium.org/9910005/diff/4002/webkit/fileapi/file_system_directory_database.cc File webkit/fileapi/file_system_directory_database.cc (right): http://codereview.chromium.org/9910005/diff/4002/webkit/fileapi/file_system_directory_database.cc#newcode118 webkit/fileapi/file_system_directory_database.cc:118: // - Each |file_id| has unique ...
8 years, 8 months ago (2012-04-03 01:52:11 UTC) #2
tzik
http://codereview.chromium.org/9910005/diff/4002/webkit/fileapi/file_system_directory_database.cc File webkit/fileapi/file_system_directory_database.cc (right): http://codereview.chromium.org/9910005/diff/4002/webkit/fileapi/file_system_directory_database.cc#newcode118 webkit/fileapi/file_system_directory_database.cc:118: // - Each |file_id| has unique backing file. On ...
8 years, 8 months ago (2012-04-04 06:50:39 UTC) #3
ericu
You've addressed all my concerns, and the code looks good as written, but I've got ...
8 years, 8 months ago (2012-04-05 00:22:26 UTC) #4
tzik
On 2012/04/05 00:22:26, ericu wrote: > You've addressed all my concerns, and the code looks ...
8 years, 8 months ago (2012-04-05 05:54:33 UTC) #5
kinuko
On 2012/04/05 05:54:33, tzik wrote: > On 2012/04/05 00:22:26, ericu wrote: > > You've addressed ...
8 years, 8 months ago (2012-04-05 07:04:23 UTC) #6
michaeln
I'm thinking we should recover from missing/extras instead of deleting all. This new logic runs ...
8 years, 8 months ago (2012-04-05 19:07:40 UTC) #7
tzik
Updated, now extra files in actual filesystem and extra database entries go away without deleting ...
8 years, 8 months ago (2012-04-09 06:28:41 UTC) #8
ericu
On 2012/04/05 07:04:23, kinuko wrote: > On 2012/04/05 05:54:33, tzik wrote: > > On 2012/04/05 ...
8 years, 8 months ago (2012-04-09 19:36:15 UTC) #9
ericu
LGTM except for those test failures.
8 years, 8 months ago (2012-04-09 19:36:58 UTC) #10
kinuko
On 2012/04/09 19:36:15, ericu wrote: > On 2012/04/05 07:04:23, kinuko wrote: > > On 2012/04/05 ...
8 years, 8 months ago (2012-04-10 05:04:57 UTC) #11
tzik
On 2012/04/09 19:36:58, ericu wrote: > LGTM except for those test failures. Thanks. Next try ...
8 years, 8 months ago (2012-04-11 04:54:17 UTC) #12
kinuko
lgtm2 modulo some nits. http://codereview.chromium.org/9910005/diff/33001/webkit/fileapi/file_system_database_test_helper.cc File webkit/fileapi/file_system_database_test_helper.cc (right): http://codereview.chromium.org/9910005/diff/33001/webkit/fileapi/file_system_database_test_helper.cc#newcode83 webkit/fileapi/file_system_database_test_helper.cc:83: } ditto. http://codereview.chromium.org/9910005/diff/33001/webkit/fileapi/file_system_database_test_helper.h File webkit/fileapi/file_system_database_test_helper.h ...
8 years, 8 months ago (2012-04-11 10:58:49 UTC) #13
tzik
Thanks! http://codereview.chromium.org/9910005/diff/33001/webkit/fileapi/file_system_database_test_helper.cc File webkit/fileapi/file_system_database_test_helper.cc (right): http://codereview.chromium.org/9910005/diff/33001/webkit/fileapi/file_system_database_test_helper.cc#newcode83 webkit/fileapi/file_system_database_test_helper.cc:83: } On 2012/04/11 10:58:49, kinuko wrote: > ditto. ...
8 years, 8 months ago (2012-04-11 13:39:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/9910005/37002
8 years, 8 months ago (2012-04-11 14:32:00 UTC) #15
commit-bot: I haz the power
Presubmit check for 9910005-37002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-11 14:32:07 UTC) #16
tzik
+darin for webkit/ owner. Darin: Can I add files to test_shell_tests?
8 years, 8 months ago (2012-04-12 02:31:53 UTC) #17
tzik
On 2012/04/12 02:31:53, tzik wrote: > +darin for webkit/ owner. > > Darin: Can I ...
8 years, 8 months ago (2012-04-16 04:10:11 UTC) #18
darin (slow to review)
8 years, 8 months ago (2012-04-16 18:10:07 UTC) #19
LGTM for webkit/tools/

Powered by Google App Engine
This is Rietveld 408576698