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

Issue 15800004: [NaCl SDK] nacl_io: Added support for access() syscall. (Closed)

Created:
7 years, 6 months ago by Matt Giuca
Modified:
7 years, 6 months ago
Reviewers:
binji
CC:
chromium-reviews, Sam Clegg, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Added support for access() syscall. BUG=246470 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207754

Patch Set 1 : #

Patch Set 2 : Rebase to HEAD and refactor after changes in SVN 205308. #

Patch Set 3 : Fixed Html5Fs Access. #

Patch Set 4 : Fixes, implement httpfs, and write tests. #

Total comments: 24

Patch Set 5 : Misc fixes. #

Total comments: 2

Patch Set 6 : Separate Access test into two and fix mocks to actually test file not found case. #

Patch Set 7 : Rebase to HEAD. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -9 lines) Patch
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 1 chunk +17 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_dev.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_dev.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_html5fs.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_http.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_http.cc View 1 2 3 4 5 chunks +35 lines, -7 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_mem.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_mem.cc View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_passthrough.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/mount_passthrough.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io_test/kernel_object_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io_test/kernel_proxy_test.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io_test/mount_http_test.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io_test/mount_test.cc View 1 2 3 6 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Matt Giuca
Hi again Ben, This adds support for the access() syscall for all file systems. I'm ...
7 years, 6 months ago (2013-06-19 10:41:42 UTC) #1
binji
lgtm. A few thoughts: what is the correct behavior of access on directories? Also, what ...
7 years, 6 months ago (2013-06-19 16:46:28 UTC) #2
Matt Giuca
Thanks for a quick review. Just some contention about the X_OK issue. https://codereview.chromium.org/15800004/diff/11001/native_client_sdk/src/libraries/nacl_io/mount.h File native_client_sdk/src/libraries/nacl_io/mount.h ...
7 years, 6 months ago (2013-06-20 01:43:14 UTC) #3
binji
slgtm https://codereview.chromium.org/15800004/diff/11001/native_client_sdk/src/libraries/nacl_io/mount.h File native_client_sdk/src/libraries/nacl_io/mount.h (right): https://codereview.chromium.org/15800004/diff/11001/native_client_sdk/src/libraries/nacl_io/mount.h#newcode56 native_client_sdk/src/libraries/nacl_io/mount.h:56: // Returns 0 on success, or an appropriate ...
7 years, 6 months ago (2013-06-20 16:07:21 UTC) #4
Matt Giuca
https://codereview.chromium.org/15800004/diff/14002/native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc File native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc (right): https://codereview.chromium.org/15800004/diff/14002/native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc#newcode335 native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc:335: .WillOnce(Return(0)) Ah, I just realised (due to your explanation ...
7 years, 6 months ago (2013-06-20 22:58:22 UTC) #5
Matt Giuca
https://codereview.chromium.org/15800004/diff/14002/native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc File native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc (right): https://codereview.chromium.org/15800004/diff/14002/native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc#newcode335 native_client_sdk/src/libraries/nacl_io_test/mount_html5fs_test.cc:335: .WillOnce(Return(0)) On 2013/06/20 22:58:22, Matt Giuca wrote: > Ah, ...
7 years, 6 months ago (2013-06-21 01:57:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/15800004/29001
7 years, 6 months ago (2013-06-21 02:35:37 UTC) #7
commit-bot: I haz the power
Change committed as 207754
7 years, 6 months ago (2013-06-21 08:48:36 UTC) #8
binji
7 years, 6 months ago (2013-06-21 16:13:51 UTC) #9
Message was sent while issue was closed.
On 2013/06/21 08:48:36, I haz the power (commit-bot) wrote:
> Change committed as 207754

Strange... the CQ did not send this to the SDK trybots. Anyway, this broke the
win_nacl_sdk bot:
http://build.chromium.org/p/client.nacl.sdk/builders/windows-sdk-multi/builds...

mount_dev.cc(12) : fatal error C1083: Cannot open include file: 'unistd.h': No
such file or directory

I'll look into it.

Powered by Google App Engine
This is Rietveld 408576698