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

Issue 832413004: [NaCl SDK] nacl_io: Change default root filesystem type from passthroughfs to memfs

Created:
5 years, 11 months ago by Sam Clegg
Modified:
5 years, 2 months ago
Reviewers:
binji
CC:
binji+watch_chromium.org, chromium-reviews, Sam Clegg
Base URL:
https://chromium.googlesource.com/chromium/src.git@cleanup_path
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Change default root filesystem type from passthroughfs to memfs Mounting a passthroughfs as root doesn't make much sense since its not generally possible to create new files and directories in the actual system root. This change is needed before we can add symlink support since symlink support requires implementing more thorough pathname resolution. For example, today its possible to open /dev/stdin without /dev existing in the root filesystem. This change improves that passthroughfs on linux by adding to kernel_wrap_dummy and adds some basic testing of passthroughfs. Although this change will effect all users of nacl_io it seems unlikely that anyone was relying on the passthroughfs being mounted at root (especially since passthroughfs only works under sel_ldr). For the more common sel_ldr case the user would either not use nacl_io or not initialize it in order to get direct access to the host file system. Also, add tests for mkdir/rmdir. CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk;tryserver.chromium.win:win_nacl_sdk BUG=

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -75 lines) Patch
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -6 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc View 1 2 3 4 5 5 chunks +69 lines, -6 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_wrap_glibc.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_wrap_newlib.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_wrap_real.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/passthroughfs/real_node.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +23 lines, -9 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 25 chunks +151 lines, -46 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
Sam Clegg
5 years, 11 months ago (2015-01-06 17:36:48 UTC) #2
binji
https://codereview.chromium.org/832413004/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc File native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc (right): https://codereview.chromium.org/832413004/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc#newcode45 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc:45: // is enough Will this do the right thing ...
5 years, 11 months ago (2015-01-07 19:14:59 UTC) #3
Sam Clegg
https://codereview.chromium.org/832413004/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc File native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc (right): https://codereview.chromium.org/832413004/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc#newcode45 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc:45: // is enough On 2015/01/07 19:14:59, binji wrote: > ...
5 years, 11 months ago (2015-01-08 12:59:08 UTC) #4
binji
code looks OK, but what's going on with the trybots? I see crashes on KernelWrapTest.access ...
5 years, 11 months ago (2015-01-09 21:11:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/832413004/80001
5 years, 7 months ago (2015-05-20 00:21:31 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 7 months ago (2015-05-20 00:21:35 UTC) #9
Sam Clegg
ptal
5 years, 7 months ago (2015-05-20 00:31:21 UTC) #10
binji
On 2015/05/20 00:31:21, Sam Clegg wrote: > ptal This still seems to be failing many ...
5 years, 7 months ago (2015-05-20 09:08:51 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/832413004/100001
5 years, 6 months ago (2015-06-02 22:14:47 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_nacl_sdk on tryserver.chromium.win (JOB_TIMED_OUT, no build URL)
5 years, 6 months ago (2015-06-03 00:19:17 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/832413004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/832413004/120001
5 years, 3 months ago (2015-09-08 17:14:18 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/50190)
5 years, 3 months ago (2015-09-08 17:43:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/832413004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/832413004/120001
5 years, 3 months ago (2015-09-08 17:45:48 UTC) #21
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 3 months ago (2015-09-08 17:45:51 UTC) #23
Sam Clegg
ptal. trybots should be green now. Found a nasty bug in the glibc _getdents_real
5 years, 3 months ago (2015-09-08 17:48:51 UTC) #24
binji
lgtm https://codereview.chromium.org/832413004/diff/120001/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc File native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc (right): https://codereview.chromium.org/832413004/diff/120001/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc#newcode49 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc:49: // Since the linux_dirent is larger (by a ...
5 years, 3 months ago (2015-09-08 19:18:57 UTC) #25
Sam Clegg
https://codereview.chromium.org/832413004/diff/120001/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc File native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc (right): https://codereview.chromium.org/832413004/diff/120001/native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc#newcode49 native_client_sdk/src/libraries/nacl_io/kernel_wrap_dummy.cc:49: // Since the linux_dirent is larger (by a single ...
5 years, 3 months ago (2015-09-09 10:11:54 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/832413004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/832413004/140001
5 years, 3 months ago (2015-09-09 10:23:51 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 13:42:36 UTC) #31
Try jobs failed on following builders:
  win_nacl_sdk on tryserver.chromium.win (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.win/builders/win_nacl_sdk/buil...)

Powered by Google App Engine
This is Rietveld 408576698