Commit Graph

853 Commits (f7952dbc641b556464bc2fd1c88330bf411abf39)

Author SHA1 Message Date
Aaron Jacobs a7de8c87e8 Made commonOp a bit less opaque. 2015-05-01 11:57:37 +10:00
Aaron Jacobs 631fb4d17c Added a hacky debugging tool that shows per-client process traces. 2015-05-01 11:55:26 +10:00
Aaron Jacobs 81d5dff5be Handle permission errors. 2015-05-01 11:55:13 +10:00
Aaron Jacobs 6eb7b7b7ac reportWhenPIDGone 2015-05-01 11:49:25 +10:00
Aaron Jacobs 572491fea4 commonOp.maybeTraceByPID 2015-05-01 11:43:46 +10:00
Aaron Jacobs 2783a71629 Renamed the feature. 2015-05-01 11:35:46 +10:00
Aaron Jacobs 2948c349e2 Added a flag for per-PID tracing. 2015-05-01 11:34:52 +10:00
Aaron Jacobs cecf227799 Show fuse ops as spans in traced contexts. Plumb through in tests. 2015-05-01 11:25:48 +10:00
Aaron Jacobs 3a1fc0ea46 Make op descriptions nicer. 2015-05-01 11:24:05 +10:00
Aaron Jacobs f52a6099c6 Pass along the test context to the server. 2015-05-01 11:20:43 +10:00
Aaron Jacobs 91346a5af6 Fixed a panic. 2015-05-01 11:18:18 +10:00
Aaron Jacobs 0985694a4b Allow setting a parent context for all ops. 2015-05-01 11:17:15 +10:00
Aaron Jacobs a76742833c Plumb through the ogletest context. 2015-05-01 11:11:32 +10:00
Aaron Jacobs 18af108bac Added reqtrace spans for fuse ops. 2015-05-01 11:04:57 +10:00
Aaron Jacobs cf9ed934d5 Added a hook for fixing op type descriptions. 2015-05-01 11:02:39 +10:00
Aaron Jacobs 966bfc881c Refactored common response code in preparation for adding tracing. 2015-05-01 11:00:32 +10:00
Aaron Jacobs 63490e89bc Use the common response helper. 2015-05-01 11:00:12 +10:00
Aaron Jacobs 7a82927f63 commonOp.respond 2015-05-01 10:57:49 +10:00
Aaron Jacobs d599dcd23a Split up convert.go a bit. 2015-05-01 10:49:50 +10:00
Aaron Jacobs 83f6f835b8 Align per-op log messages. 2015-04-29 12:11:34 +10:00
Aaron Jacobs c2e9acdd0a Made built-in fuse logging less verbose. 2015-04-29 12:09:39 +10:00
Aaron Jacobs 88af4165bf Added a facility for per-op logging using --fuse.debug.
The output contains an op ID, to make it easier to distinguish parallel
operations.
2015-04-29 11:53:46 +10:00
Aaron Jacobs 3e4a8fd488 Shorter op IDs. 2015-04-29 11:53:17 +10:00
Aaron Jacobs a524c3fd67 Remove prefix to save some characters. 2015-04-29 11:51:35 +10:00
Aaron Jacobs 4b97059d22 Added the op ID. 2015-04-29 11:51:25 +10:00
Aaron Jacobs cad0c5fe50 Obtain file:line info in Connection.log. 2015-04-29 11:44:00 +10:00
Aaron Jacobs 1720b526fb Use Connection.log for ops, too. 2015-04-29 11:35:28 +10:00
Aaron Jacobs d12e71f773 Added a Connection.log method, with a TODO. 2015-04-29 11:32:21 +10:00
Aaron Jacobs 380eba1dd5 Added a simple Logf implementation. To be improved. 2015-04-29 11:28:35 +10:00
Aaron Jacobs dbbb61ad10 Added a LogF method to Op. 2015-04-29 11:28:34 +10:00
Aaron Jacobs 7caa68e3be Don't initialize logger multiple times. 2015-04-29 11:28:34 +10:00
Aaron Jacobs ce41e1d0ec Updated an out of date comment. 2015-04-29 11:28:16 +10:00
Aaron Jacobs 28bcc71cb4 Give more verbose log entries. 2015-04-28 11:54:16 +10:00
Aaron Jacobs 2d471e946a Made fileSystemServer run each method on its own goroutine.
For #8.
2015-04-02 11:21:55 +11:00
Aaron Jacobs dd0d1163f8 Improved the flag name. 2015-04-02 11:20:53 +11:00
Aaron Jacobs 02d14a685e Added a random delays feature for #8. 2015-04-02 11:19:56 +11:00
Aaron Jacobs 6305cb930b Synchronize on ops in flight in tear-down, fixing forgetfs_test. 2015-04-02 11:10:55 +11:00
Aaron Jacobs 0461ddac4f Handle each op in its own goroutine. 2015-04-02 10:52:58 +11:00
Aaron Jacobs 4d06d8aef8 Updated NewFileSystemServer docs. 2015-04-02 10:50:44 +11:00
Aaron Jacobs 7ed1d0689d Updated documentation in light of the investigation in issue #8. 2015-04-02 10:45:38 +11:00
Aaron Jacobs dadff5d9b5 Disable annoying Apple Double files on OS X.
If these ever prove to be desirable, we can revert this or add a mount
option.
2015-04-01 13:25:16 +11:00
Aaron Jacobs 3de0df2676 Added a note about serialization on SyncFileOp too. 2015-04-01 11:34:33 +11:00
Aaron Jacobs db2100ecbb Added some code investigation about fuse_flush not waiting for writes.
While I'm thinking about GoogleCloudPlatform/gcsfuse#23.
2015-04-01 11:29:32 +11:00
Aaron Jacobs 3ccb5ca04d Added a "picky" version of ioutil.ReadDir.
For GoogleCloudPlatform/gcsfuse#30.
2015-04-01 09:16:20 +11:00
Aaron Jacobs 68c1be048a Don't forget to close the directory. 2015-04-01 09:15:45 +11:00
Aaron Jacobs 144a8d9fd9 Implemented ReadDirPicky. 2015-04-01 09:13:47 +11:00
Aaron Jacobs 40fdee8c78 Made tests pickier about ReadDir. 2015-04-01 09:05:26 +11:00
Aaron Jacobs 304ce5a08e Added a stub for a picky version of ioutil.ReadDir. 2015-04-01 08:46:18 +11:00
Aaron Jacobs e859e64179 fsImpl.Check: Bail out early on Linux.
To my great disappointment, I can't figure out a way to make this test
reliable on Linux. Hopefully the cited mailing list thread will come
through.
2015-03-31 16:01:22 +11:00
Aaron Jacobs 6b4a733e56 Added a citation. 2015-03-31 15:59:26 +11:00