Aaron Jacobs
7f614f1faf
Filled out the tests for forgetfs.
...
For #7 .
2015-03-31 10:10:04 +11:00
Aaron Jacobs
a31287ac35
ForgetFSTest.MkDir
2015-03-31 10:09:58 +11:00
Aaron Jacobs
c0d3a195c6
ForgetFSTest.CreateFile
2015-03-31 10:09:09 +11:00
Aaron Jacobs
ce13e404fd
ForgetFSTest.Stat_ManyTimes
2015-03-31 10:07:43 +11:00
Aaron Jacobs
a84040dc15
ForgetFSTest.Stat_Bar
2015-03-31 10:07:07 +11:00
Aaron Jacobs
fb6dcee4d0
ForgetFSTest.Stat_Foo
2015-03-31 10:06:51 +11:00
Aaron Jacobs
ea13e766fd
ForgetFSTest.Open_ManyTimes
2015-03-31 10:06:06 +11:00
Aaron Jacobs
a11be99f88
ForgetFSTest.Open_Bar
2015-03-31 10:04:29 +11:00
Aaron Jacobs
706617d03b
Added connection support for ForgetInodeOp, and started testing.
...
For #7 .
2015-03-31 10:02:37 +11:00
Aaron Jacobs
fef47a3a32
fsImpl.ForgetInode
2015-03-31 10:01:09 +11:00
Aaron Jacobs
9719d57fb6
Added connection support for ForgetInodeOp.
2015-03-31 09:58:43 +11:00
Aaron Jacobs
ee2040958c
The root inode ends with a lookup count of one, too.
2015-03-31 09:53:39 +11:00
Aaron Jacobs
8e04b7d848
fsImpl.OpenFile
2015-03-31 09:50:01 +11:00
Aaron Jacobs
50cda17355
Fixed a panic.
2015-03-31 09:48:50 +11:00
Aaron Jacobs
d0a8174ec0
fsImpl.LookUpInode.
2015-03-31 09:46:01 +11:00
Aaron Jacobs
541223bb07
fsImpl.GetInodeAttributes
2015-03-31 09:39:27 +11:00
Aaron Jacobs
a573f6e575
The root inode begins with a lookup count of 1.
...
Cf. jacobsa/fuse@36d7193638
2015-03-30 16:36:28 +11:00
Aaron Jacobs
ded5091c2e
ForgetFSTest.Open_Foo
2015-03-30 16:35:37 +11:00
Aaron Jacobs
f76439120c
Check
2015-03-30 16:35:37 +11:00
Aaron Jacobs
a787be87bb
fsImpl.checkInvariants
2015-03-30 16:35:37 +11:00
Aaron Jacobs
b2b1b6a4ef
Added fsImpl members.
2015-03-30 16:35:37 +11:00
Aaron Jacobs
a37b22d786
fsImpl.Init
2015-03-30 16:35:37 +11:00
Aaron Jacobs
42cefe94f7
Revised a plan.
2015-03-30 16:35:37 +11:00
Aaron Jacobs
8e8c391a21
Made a panic clearer.
2015-03-30 16:35:37 +11:00
Aaron Jacobs
faba594f7f
ForgetFSTest.SetUp
2015-03-30 16:35:37 +11:00
Aaron Jacobs
36643c8daf
Added test names.
2015-03-30 16:35:36 +11:00
Aaron Jacobs
d4e690f2f8
Added a test stub.
2015-03-30 16:35:36 +11:00
Aaron Jacobs
987e4f4087
Sketched forgetfs.
2015-03-30 16:35:36 +11:00
Aaron Jacobs
36d7193638
Added a note about nlookup for the root inode.
...
For #7 .
2015-03-30 16:35:17 +11:00
Aaron Jacobs
bd16024eec
Nailed down the semantics of ForgetInodeOp.
...
For #7 .
2015-03-30 16:00:21 +11:00
Aaron Jacobs
06bacc17a3
Documented the responses that increment the lookup count.
2015-03-30 15:59:41 +11:00
Aaron Jacobs
a44e5edb46
Added more info on nlookup incrementing.
2015-03-30 15:54:44 +11:00
Aaron Jacobs
bc03335bb2
Added additional field and better documentation for ForgetInodeOp.
2015-03-30 15:53:15 +11:00
Aaron Jacobs
566fb55e84
Max out the size of reads and writes from the kernel.
...
Fixes googlecloudplatform/gcsfuse#27 .
2015-03-26 16:27:21 +11:00
Aaron Jacobs
f0d9fada95
Fixed InitResponse logging.
2015-03-26 16:26:35 +11:00
Aaron Jacobs
ee7b064667
While I'm at it, also enable large reads.
...
For googlecloudplatform/gcsfuse#27 .
2015-03-26 16:25:01 +11:00
Aaron Jacobs
5dbc3bcd61
Ask for large writes from the kernel.
...
For googlecloudplatform/gcsfuse#27 .
2015-03-26 16:10:07 +11:00
Aaron Jacobs
0e7e9c3f78
Added a memfs test for a large file.
...
To help investigate googlecloudplatform/gcsfuse#27 .
2015-03-26 15:54:17 +11:00
Aaron Jacobs
2222e8d053
Specify that errors from Release{File,Dir}Handle ops are ignored.
...
Fixes #6 .
2015-03-25 11:08:04 +11:00
Aaron Jacobs
14ea5a9db1
Replaced MountedFileSystem.Unmount with a free function.
...
The free function is more flexible, including being able to be used from
outside the daemon process.
2015-03-25 10:17:11 +11:00
Aaron Jacobs
d1186c7579
Fixed a build error.
2015-03-25 10:17:02 +11:00
Aaron Jacobs
32c00cb130
Oops, totally screwed that up.
2015-03-25 10:16:42 +11:00
Aaron Jacobs
e2a8e77cdc
Replaced MountedFileSystem.Unmount with a free function.
2015-03-25 10:15:43 +11:00
Aaron Jacobs
2c10dd18ca
Require FileSystem methods to call Op.Respond.
...
And provide a helper to make it convenient to do so.
Having the server implementation call Respond makes it unnecessarily tricky to
implement FileSystem methods that continue computations in the background and
return immediately, for example enqueuing writes/flushes for a worker
goroutine.
2015-03-25 10:00:58 +11:00
Aaron Jacobs
5aa47ca47c
Fixed memfs.
2015-03-25 10:00:43 +11:00
Aaron Jacobs
74b847919c
Fixed flushfs.
2015-03-25 10:00:19 +11:00
Aaron Jacobs
d7e70cb7dc
Fixed cachingfs.
2015-03-25 10:00:01 +11:00
Aaron Jacobs
c1a851403d
Added a RespondToOp helper.
2015-03-25 09:59:24 +11:00
Aaron Jacobs
e96100b5ac
Fixed hellofs.
2015-03-25 09:55:11 +11:00
Aaron Jacobs
6667a7f8f6
Fixed NotImplementedFileSystem.
2015-03-25 09:54:12 +11:00