Commit Graph

737 Commits (5fd9008838ec7522d0474465c0407178429d425c)

Author SHA1 Message Date
Aaron Jacobs 5fd9008838 Began on a test. 2015-05-05 10:34:39 +10:00
Aaron Jacobs 7af2286422 Began on interruptfs. 2015-05-05 10:34:39 +10:00
Aaron Jacobs 2cbbc756df Eliminated redundant checking for unknown ops.
The user must already have this checking, so we don't need it. Getting rid of
it will allow us to call beginOp before calling Convert, necessary for putting
aditional state keeping in that method.
2015-05-05 10:33:49 +10:00
Aaron Jacobs 64a7c6f973 Connection.ReadOp can assume Convert will not fail. 2015-05-05 10:33:47 +10:00
Aaron Jacobs 025ddafef1 Updated Convert. 2015-05-05 10:32:57 +10:00
Aaron Jacobs 02983fd557 Added unknownOp. 2015-05-05 10:32:22 +10:00
Aaron Jacobs 2cde92d5de Defined new contract. 2015-05-05 10:29:48 +10:00
Aaron Jacobs c141849814 Eliminated a bunch of per-op error checking boilerplate. 2015-05-05 10:28:03 +10:00
Aaron Jacobs bc6e09f86f toBazilfuseResponse methods. 2015-05-05 10:27:24 +10:00
Aaron Jacobs bc476921d5 Set bfResp. 2015-05-05 10:26:34 +10:00
Aaron Jacobs 2aed770c32 commonOp.Respond 2015-05-05 10:25:25 +10:00
Aaron Jacobs 9167630de5 Renamed methods. 2015-05-05 10:23:37 +10:00
Aaron Jacobs daa69251d1 Killed branches on err. 2015-05-05 10:22:46 +10:00
Aaron Jacobs ee8c1f0357 Use internalOp. 2015-05-05 10:21:21 +10:00
Aaron Jacobs 6c38037b11 Defined internalOp. 2015-05-05 10:20:03 +10:00
Aaron Jacobs b79a1f5510 Simplified the Connection <-> commonOp protocol a bit.
In preparation for adding interrupt support in #GoogleCloudPlatform/gcsfuse#41.
2015-05-05 10:08:02 +10:00
Aaron Jacobs 737ebd1e1f Fixed a livelock. 2015-05-05 10:07:34 +10:00
Aaron Jacobs 15bdf82b56 Connection.finishOp 2015-05-05 10:04:31 +10:00
Aaron Jacobs be9bf6720f Connection.ReadOp 2015-05-05 10:04:03 +10:00
Aaron Jacobs 4f1efbe41b Removed a bunch of boilerplate. 2015-05-05 10:01:17 +10:00
Aaron Jacobs 66dad039d2 Convert 2015-05-05 10:00:18 +10:00
Aaron Jacobs e6656ea87f Use a better name. 2015-05-05 09:59:14 +10:00
Aaron Jacobs 54b3ccc86a commonOp.respond 2015-05-05 09:58:18 +10:00
Aaron Jacobs 06b6ec27f5 commonOp.respondErr 2015-05-05 09:57:41 +10:00
Aaron Jacobs ea5acc6f08 commonOp.init 2015-05-05 09:56:49 +10:00
Aaron Jacobs ccde3b5ce3 Clarify concurrency of Respond. 2015-05-05 09:53:21 +10:00
Aaron Jacobs c0477fd859 Reorganized the contents of commonOp. 2015-05-05 09:52:25 +10:00
Aaron Jacobs 29cee3d64c Fixed an out of date comment. 2015-05-05 09:48:16 +10:00
Aaron Jacobs 0574771086 Improved per-PID trace output. 2015-05-01 12:52:14 +10:00
Aaron Jacobs 93de940966 Added some vanity op descriptions. 2015-05-01 12:38:03 +10:00
Aaron Jacobs 2dda1a5ea9 Include the object inode by default. 2015-05-01 12:28:25 +10:00
Aaron Jacobs d31b0cbd81 Refactored op descriptions again. 2015-05-01 12:24:36 +10:00
Aaron Jacobs 6868642c96 Expanded description of PID spans. 2015-05-01 12:21:22 +10:00
Aaron Jacobs 6679631689 Refactored how op descriptions work. 2015-05-01 12:21:06 +10:00
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