Bug 99162 - AsyncFileSystem::openFileSystem should be called only when need to handle the filesystem asynchronous fashion.
Summary: AsyncFileSystem::openFileSystem should be called only when need to handle the...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Dongwoo Joshua Im (dwim)
URL:
Keywords:
Depends on:
Blocks: 79193
  Show dependency treegraph
 
Reported: 2012-10-12 04:37 PDT by Dongwoo Joshua Im (dwim)
Modified: 2013-06-06 22:18 PDT (History)
12 users (show)

See Also:


Attachments
patch (8.62 KB, patch)
2012-10-12 04:43 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
patch (8.57 KB, patch)
2012-10-12 04:48 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
patch (5.14 KB, patch)
2012-10-14 19:30 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
patch (5.15 KB, patch)
2012-10-15 01:28 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
Patch (5.41 KB, patch)
2012-10-25 01:05 PDT, Dongwoo Joshua Im (dwim)
no flags Details | Formatted Diff | Diff
Patch (5.41 KB, patch)
2012-10-25 01:07 PDT, Dongwoo Joshua Im (dwim)
gyuyoung.kim: review+
gyuyoung.kim: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dongwoo Joshua Im (dwim) 2012-10-12 04:37:43 PDT
I totally believe AsyncFileSystem::openFileSystem should have FileSystemSynchronousType as a parameter.
FileSystemSynchronousType is an important information for AsyncFileSystem.

I'll upload patch soon.
Comment 1 Dongwoo Joshua Im (dwim) 2012-10-12 04:43:57 PDT
Created attachment 168394 [details]
patch
Comment 2 Dongwoo Joshua Im (dwim) 2012-10-12 04:48:40 PDT
Created attachment 168395 [details]
patch

I've uploaded wrong patch before.
Comment 3 Gyuyoung Kim 2012-10-13 03:46:08 PDT
Comment on attachment 168395 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=168395&action=review

> Source/WebCore/ChangeLog:8
> +        I totally believe AsyncFileSystem::openFileSystem should have FileSystemSynchronousType as a parameter.

Hmm, I think "I totally believe" is not proper changelog comment. We have to write fact or description only.
Comment 4 Dongwoo Joshua Im (dwim) 2012-10-14 18:16:31 PDT
IMO, LocalFileSystem should be restructured little bit.
Worker and non-worker case should be distinguished,
and async and sync case should be, as well.

Chromium port already have done that kind of implementation in their own file.
Comment 5 Dongwoo Joshua Im (dwim) 2012-10-14 19:30:00 PDT
Created attachment 168609 [details]
patch
Comment 6 Dongwoo Joshua Im (dwim) 2012-10-14 21:58:47 PDT
AsyncFileSystem::openFileSystem should be called only when FileSystem should work asynchronously.

IMO, we need SyncFileSystem to handle synchronous mode for the worker.

What do you think?
Comment 7 Dongwoo Joshua Im (dwim) 2012-10-15 01:28:31 PDT
Created attachment 168648 [details]
patch
Comment 8 Dongwoo Joshua Im (dwim) 2012-10-16 02:09:12 PDT
Any comments for this patch?

This is important patch, kind of start-up patch, for the port implementation.
Comment 9 Gyuyoung Kim 2012-10-16 20:07:43 PDT
Comment on attachment 168648 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=168648&action=review

> Source/WebCore/Modules/filesystem/LocalFileSystem.cpp:81
> +static void openFileSystemForWorker(ScriptExecutionContext*, const String&, const String&, FileSystemType, bool, PassOwnPtr<AsyncFileSystemCallbacks>, FileSystemSynchronousType)

I wonder if this function is related to WORKERS functionality. If so, you need to use #if ENABLE(WORKERS) macro. One more thing, there is openFileSystemForWorker() in chromium port. How is relationship between this and the function. Is there no conflict or can we share it ?
Comment 10 Dongwoo Joshua Im (dwim) 2012-10-25 00:16:21 PDT
(In reply to comment #9)
> (From update of attachment 168648 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=168648&action=review
> 
> > Source/WebCore/Modules/filesystem/LocalFileSystem.cpp:81
> > +static void openFileSystemForWorker(ScriptExecutionContext*, const String&, const String&, FileSystemType, bool, PassOwnPtr<AsyncFileSystemCallbacks>, FileSystemSynchronousType)
> 
> I wonder if this function is related to WORKERS functionality. If so, you need to use #if ENABLE(WORKERS) macro. One more thing, there is openFileSystemForWorker() in chromium port. How is relationship between this and the function. Is there no conflict or can we share it ?

I will try to use the flag there.

There will be no conflict with chromium port at all.
But I think I need to talk with chromium guys, I think we can share some part which they already implemented.
Comment 11 Dongwoo Joshua Im (dwim) 2012-10-25 01:05:19 PDT
Created attachment 170578 [details]
Patch
Comment 12 Dongwoo Joshua Im (dwim) 2012-10-25 01:07:56 PDT
Created attachment 170579 [details]
Patch
Comment 13 Gyuyoung Kim 2012-11-05 17:06:35 PST
Comment on attachment 170579 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=170579&action=review

Looks make sense. If there is no comment anymore, I would like to land this tomorrow.

> Source/WebCore/Modules/filesystem/LocalFileSystem.cpp:105
> +        ASSERT_NOT_REACHED();

UNUSED_PARAM(synchronousType) ?
Comment 14 Gyuyoung Kim 2012-11-05 17:07:40 PST
CC'ing Hajime, Kentaro.
Comment 15 Gyuyoung Kim 2012-11-06 17:33:02 PST
Comment on attachment 170579 [details]
Patch

There are still some talk whether WebKit continues to support file system. So, I think this patch needs to be wait until finishing the decision.