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

Issue 10377102: Added simplest device mount implementation (includes NullDevice and RandomDevice) (Closed)

Created:
8 years, 7 months ago by vissi
Modified:
8 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Added simplest device mount implementation (includes NullDevice and RandomDevice) BUG=http://code.google.com/p/nativeclient/issues/detail?id=2759 Committed: https://code.google.com/p/naclports/source/detail?r=582

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -4 lines) Patch
M libraries/nacl-mounts/Makefile View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M libraries/nacl-mounts/base/KernelProxy.cc View 1 2 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M libraries/nacl-mounts/console/terminal_stubs.c View 1 chunk +1 line, -1 line 0 comments Download
A libraries/nacl-mounts/dev/DevMount.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/dev/DevMount.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +137 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/dev/Device.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/dev/NullDevice.h View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/dev/NullDevice.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/dev/RandomDevice.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/dev/RandomDevice.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M libraries/nacl-mounts/memory/MemMount.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M libraries/nacl-mounts/nacl-nacl-mounts.sh View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/test.nacl/DevTest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
M libraries/nacl-mounts/test.nacl/Makefile View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M libraries/nacl-mounts/test.nacl/SimpleTest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
A libraries/nacl-mounts/test/DevMountTest.cc View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vissi
Please take a look
8 years, 7 months ago (2012-05-11 08:00:03 UTC) #1
Evgeniy Stepanov
You are not attaching a RandomDevice to the filesystem. This can not work. Please write ...
8 years, 7 months ago (2012-05-11 08:16:37 UTC) #2
vissi
Yes, that was intentional, random device impl should be discussed. NaCl SSH has the following ...
8 years, 7 months ago (2012-05-11 08:31:05 UTC) #3
Evgeniy Stepanov
What does nacl-ssh fallback to then? It can not work without a random number generator. ...
8 years, 7 months ago (2012-05-11 08:46:38 UTC) #4
vissi
It uses JSFileHandler https://chromiumcodereview.appspot.com/10377102/diff/5/libraries/nacl-mounts/dev/DevMount.cc File libraries/nacl-mounts/dev/DevMount.cc (right): https://chromiumcodereview.appspot.com/10377102/diff/5/libraries/nacl-mounts/dev/DevMount.cc#newcode70 libraries/nacl-mounts/dev/DevMount.cc:70: return -1; On 2012/05/11 08:46:38, Evgeniy ...
8 years, 7 months ago (2012-05-11 08:55:39 UTC) #5
vissi
On 2012/05/11 08:55:39, vissi wrote: > It uses JSFileHandler > > https://chromiumcodereview.appspot.com/10377102/diff/5/libraries/nacl-mounts/dev/DevMount.cc > File libraries/nacl-mounts/dev/DevMount.cc ...
8 years, 7 months ago (2012-05-11 09:45:37 UTC) #6
Evgeniy Stepanov
On 2012/05/11 09:45:37, vissi wrote: > On 2012/05/11 08:55:39, vissi wrote: > > It uses ...
8 years, 7 months ago (2012-05-11 10:46:56 UTC) #7
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc File libraries/nacl-mounts/dev/DevMount.cc (right): https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc#newcode39 libraries/nacl-mounts/dev/DevMount.cc:39: inode_to_ref[node]--; I suggest dropping all reference counting in DevMount ...
8 years, 7 months ago (2012-05-11 10:47:34 UTC) #8
vissi
https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc File libraries/nacl-mounts/dev/DevMount.cc (right): https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc#newcode39 libraries/nacl-mounts/dev/DevMount.cc:39: inode_to_ref[node]--; On 2012/05/11 10:47:34, Evgeniy Stepanov wrote: > I ...
8 years, 7 months ago (2012-05-11 11:49:18 UTC) #9
Evgeniy Stepanov
https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc File libraries/nacl-mounts/dev/DevMount.cc (right): https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc#newcode60 libraries/nacl-mounts/dev/DevMount.cc:60: int DevMount::Getdents(ino_t slot, off_t offset, On 2012/05/11 11:49:19, vissi ...
8 years, 7 months ago (2012-05-11 12:02:54 UTC) #10
vissi
On 2012/05/11 12:02:54, Evgeniy Stepanov wrote: > https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc > File libraries/nacl-mounts/dev/DevMount.cc (right): > > https://chromiumcodereview.appspot.com/10377102/diff/13005/libraries/nacl-mounts/dev/DevMount.cc#newcode60 ...
8 years, 7 months ago (2012-05-11 13:22:14 UTC) #11
vissi
On 2012/05/11 13:22:14, vissi wrote: > On 2012/05/11 12:02:54, Evgeniy Stepanov wrote: > > > ...
8 years, 7 months ago (2012-05-11 13:54:36 UTC) #12
vissi
On 2012/05/11 13:54:36, vissi wrote: > On 2012/05/11 13:22:14, vissi wrote: > > On 2012/05/11 ...
8 years, 7 months ago (2012-05-11 14:22:26 UTC) #13
Evgeniy Stepanov
8 years, 7 months ago (2012-05-11 14:41:30 UTC) #14
lgtm

Powered by Google App Engine
This is Rietveld 408576698