Commit Graph

763 Commits (9ee0e4a22fa5b71db66ea6ad4aed0b987b9f73a3)

Author SHA1 Message Date
Aaron Jacobs 9ee0e4a22f Started ReadOnlyTest.ReadRoot. 2015-05-18 09:57:05 +10:00
Aaron Jacobs 68a2e8a068 Added the mount_sample flag. 2015-05-18 09:55:39 +10:00
Aaron Jacobs 20ff8c6aec ReadOnlyTest.SetUp 2015-05-18 09:54:34 +10:00
Aaron Jacobs 7caa7e6e91 Added test names. 2015-05-18 09:52:10 +10:00
Aaron Jacobs 7ad99ec900 Added MountConfig.ReadOnly. 2015-05-18 09:49:37 +10:00
Aaron Jacobs cb273d013a Moved per-PID tracing to Connection.
This lets it happen before per-request cancellation, which otherwise
causes all future ops to start cancelled after one finishes.
2015-05-05 15:06:01 +10:00
Aaron Jacobs a9b17361e8 Fixed a context propagation bug. 2015-05-05 14:49:59 +10:00
Aaron Jacobs 05bfe2677e Added support for kernel interrupt requests.
An interrupt for the kernel will cause the original op's context to be
cancelled.

For GoogleCloudPlatform/gcsfuse#41.
2015-05-05 12:42:11 +10:00
Aaron Jacobs fe90f319b3 Fixed a bug in handling of an unknown op type. 2015-05-05 12:40:37 +10:00
Aaron Jacobs 306840e4ce Wait less time, making the test faster. 2015-05-05 12:34:07 +10:00
Aaron Jacobs 130ddabc42 InterruptFSTest.InterruptedDuringRead 2015-05-05 12:32:36 +10:00
Aaron Jacobs 1236f0e278 Most of InterruptFSTest.InterruptedDuringRead. 2015-05-05 12:28:18 +10:00
Aaron Jacobs 98fe7cbb0d Handle interrupt requests. 2015-05-05 12:21:57 +10:00
Aaron Jacobs 0c8f9cece8 Fix another osxfuse request ID reuse bug. 2015-05-05 11:47:05 +10:00
Aaron Jacobs 7fd0abb1f5 Handle osxfuse's behavior of reusing "unique" IDs. 2015-05-05 11:44:54 +10:00
Aaron Jacobs 5649885523 Fixed a panic. 2015-05-05 10:42:17 +10:00
Aaron Jacobs 766ff1edf7 Connection.recordCancelFunc 2015-05-05 10:41:52 +10:00
Aaron Jacobs d22c1c64ae Arrange for a cancellation channel. 2015-05-05 10:41:09 +10:00
Aaron Jacobs 4fdecd8417 Use new beginOp/finishOp. 2015-05-05 10:36:38 +10:00
Aaron Jacobs 365f219704 New begin/finish interface. Not yet wired. 2015-05-05 10:34:40 +10:00
Aaron Jacobs be24b2b3e3 Signal in flight. 2015-05-05 10:34:40 +10:00
Aaron Jacobs 0b00132020 InterruptFS.ReadFile 2015-05-05 10:34:40 +10:00
Aaron Jacobs aeca4a00d5 Fixed a bug. 2015-05-05 10:34:40 +10:00
Aaron Jacobs 8010a8342d InterruptFS.WaitForReadInFlight 2015-05-05 10:34:40 +10:00
Aaron Jacobs fe14fa8f3e Started InterruptFSTest.InterruptedDuringRead. 2015-05-05 10:34:40 +10:00
Aaron Jacobs d862e4b035 interruptfs.New 2015-05-05 10:34:40 +10:00
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