Commit Graph

607 Commits (32c00cb1303a19c306621f2fa52f3f82848464db)

Author SHA1 Message Date
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
Aaron Jacobs 93d1bc181f Don't return error from FileSystem methods. 2015-03-25 09:53:26 +11:00
Aaron Jacobs eeac7182e5 Use the FileSystem interface in the samples. 2015-03-25 09:35:51 +11:00
Aaron Jacobs e1e438439c Use FileSystem in memfs. 2015-03-25 09:35:32 +11:00
Aaron Jacobs beb1ac7430 Use FileSystem in flushfs. 2015-03-25 09:33:04 +11:00
Aaron Jacobs e0aecb1d0b Use FileSystem in cachingfs. 2015-03-25 09:31:43 +11:00
Aaron Jacobs a01f4b6ae5 Use FileSystem in hellofs. 2015-03-25 09:29:24 +11:00
Aaron Jacobs 54d3fee527 Restored the FileSystem interface in a new form. 2015-03-25 09:25:48 +11:00
Aaron Jacobs 2c0b99bdce Implemented NewFileSystemServer. 2015-03-25 09:24:44 +11:00
Aaron Jacobs 579e3f648e Added NotImplementedFileSystem methods. 2015-03-25 09:20:54 +11:00
Aaron Jacobs cdfc7045b5 Added a callout to fuseutil.NewFileSystemServer. 2015-03-25 09:18:56 +11:00
Aaron Jacobs 485f5d64fc Declared NotImplementedFileSystem. 2015-03-25 09:17:58 +11:00
Aaron Jacobs 00809e98fe Added a FileSystem interface and declared a function that transforms it. 2015-03-25 09:16:03 +11:00
Aaron Jacobs b5f3f11782 Added callouts to the samples. 2015-03-24 16:41:03 +11:00
Aaron Jacobs 336525bfec Remade the package fuse interface around reading a sequence of op structs.
This aovids the fundamental race in #3.
2015-03-24 16:35:01 +11:00
Aaron Jacobs 2cc1bfaafd Removed some references to FileSystem. 2015-03-24 16:34:43 +11:00
Aaron Jacobs bc5f2bac2d Fixed SetInodeAttributesOp conversion. 2015-03-24 16:32:12 +11:00
Aaron Jacobs 48f58d3d69 Fixed MkDirOp.Respond. 2015-03-24 16:29:13 +11:00
Aaron Jacobs e3ed9f153f Fixed memfs dispatch bugs. 2015-03-24 16:27:00 +11:00
Aaron Jacobs a361e12cab Updated memfs_test. 2015-03-24 16:25:26 +11:00
Aaron Jacobs 417c54c1a4 Started ServeOps. 2015-03-24 16:25:10 +11:00
Aaron Jacobs 0a06b97691 More memfs fixes. 2015-03-24 16:24:43 +11:00
Aaron Jacobs 05e62e432c Simple memfs edits. 2015-03-24 16:20:32 +11:00
Aaron Jacobs fd7866ea8b Fixed flushfs bugs. 2015-03-24 16:19:09 +11:00
Aaron Jacobs 79ec56b9fa Updated mount_sample. 2015-03-24 16:17:56 +11:00
Aaron Jacobs 9a704e1cd1 Mostly updated flushfs. 2015-03-24 16:17:10 +11:00
Aaron Jacobs 9190eea002 Fixed several build errors. 2015-03-24 16:14:42 +11:00
Aaron Jacobs 95557166b5 Updated cachingfs test. 2015-03-24 16:13:34 +11:00
Aaron Jacobs e0068fc2a7 Updated cachingfs. 2015-03-24 16:13:01 +11:00
Aaron Jacobs ca8df835f6 Fixed more errors. 2015-03-24 16:10:28 +11:00
Aaron Jacobs fc3e144abf Fixed simple cachingfs errors. 2015-03-24 16:09:29 +11:00
Aaron Jacobs cfc692da07 Made Server an interface, for expandability. 2015-03-24 16:08:42 +11:00
Aaron Jacobs fb40c200a9 Fixed a panic. 2015-03-24 16:02:40 +11:00
Aaron Jacobs 77ad10c518 Fixed response output. 2015-03-24 16:01:53 +11:00
Aaron Jacobs 25a2502636 Updated hellofs. 2015-03-24 16:00:46 +11:00
Aaron Jacobs 58e8a310aa Log responses and errors. 2015-03-24 15:59:19 +11:00
Aaron Jacobs 2720f50225 Print received requests. 2015-03-24 15:52:14 +11:00
Aaron Jacobs ab55e07aea Respond to statfs. 2015-03-24 15:51:36 +11:00
Aaron Jacobs 3dcd942c33 Added support for Init in hellofs. 2015-03-24 15:49:26 +11:00
Aaron Jacobs a6638727cc Fixed a silly bug. 2015-03-24 15:48:18 +11:00
Aaron Jacobs 7393225029 Fixed hello_fs_test build errors. 2015-03-24 15:47:26 +11:00
Aaron Jacobs eca0a3760e Refactored hellofs. 2015-03-24 15:46:49 +11:00