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 : #Messages
Total messages: 31 (12 generated)
|