Commit Graph

1272 Commits (eaa0177b80daf4c82ffae826983c5d3d245f6c5b)

Author SHA1 Message Date
Aaron Jacobs 32418239ae Removed read locks around the device.
We require no conrrent calls to ReadOp, and that ServeOps doesn't return
until all ops have been responded to, so I believe this should be safe.
In particular, fuseshim uses the locks only to exclude reads and writes
during closing, not for anything else.
2015-07-24 15:26:07 +10:00
Aaron Jacobs 876746fcd2 Don't depend on fuseshim.FileMode. 2015-07-24 15:23:11 +10:00
Aaron Jacobs c69cd3b527 Don't depend on fuseshim.Message. 2015-07-24 15:21:03 +10:00
Aaron Jacobs 4de334e034 Fixed a bug related to EINTR. 2015-07-24 15:20:43 +10:00
Aaron Jacobs 816f77d732 Fixed a bug. 2015-07-24 15:13:26 +10:00
Aaron Jacobs 36b7b6ab0e Fixed a bug. 2015-07-24 15:11:31 +10:00
Aaron Jacobs 59962d69e6 Fixed a bug. 2015-07-24 15:10:28 +10:00
Aaron Jacobs a1dadab66e Fixed a bug. 2015-07-24 15:07:55 +10:00
Aaron Jacobs 7a5761a67c Fixed some TODOs. 2015-07-24 15:05:27 +10:00
Aaron Jacobs f2e8a5d806 Connection.readMessage 2015-07-24 15:04:28 +10:00
Aaron Jacobs 9ea4360f19 InMessage.Init 2015-07-24 14:57:18 +10:00
Aaron Jacobs b550b092fe Implemented some other InMessage methods. 2015-07-24 14:55:35 +10:00
Aaron Jacobs e0d989cba3 InMessage.Header 2015-07-24 14:52:54 +10:00
Aaron Jacobs d93a81b046 Defined the constant for Linux, too. 2015-07-24 14:46:45 +10:00
Aaron Jacobs b8110bf8a7 Added a buffer field. 2015-07-24 14:45:47 +10:00
Aaron Jacobs ca4f55538f Fixed remaining build errors. 2015-07-24 14:41:59 +10:00
Aaron Jacobs eb177d5cf4 Fixed a bunch more. 2015-07-24 14:40:43 +10:00
Aaron Jacobs 64f4827424 Fixed some build errors. 2015-07-24 14:36:59 +10:00
Aaron Jacobs 3b9092aca5 Use InMessage in several places. 2015-07-24 14:33:27 +10:00
Aaron Jacobs 0370159a68 Export some fields of fuseshim.Conn. 2015-07-24 14:29:31 +10:00
Aaron Jacobs 2e8b1546be Declared InMessage. 2015-07-24 14:27:14 +10:00
Aaron Jacobs 2199f98f19 Rename buffer.Buffer to buffer.OutMessage.
In preparation for adding an InMessage.
2015-07-24 14:12:27 +10:00
Aaron Jacobs 34bba99216 Fixed a bunch of build errors. 2015-07-24 14:12:12 +10:00
Aaron Jacobs b3d13508fb Renamed to OutMessage. 2015-07-24 14:11:03 +10:00
Aaron Jacobs 5166631830 Renamed to out_message.go. 2015-07-24 14:09:11 +10:00
Aaron Jacobs 6dd4bf3b90 Stop referring to fuseshim.RootID. 2015-07-24 14:05:13 +10:00
Aaron Jacobs 964ae1b4e5 Don't rely on fuseshim for errors. 2015-07-24 14:02:55 +10:00
Aaron Jacobs 3720ab2963 Updated a TODO. 2015-07-24 13:48:10 +10:00
Aaron Jacobs 24a6daeaeb Stop using fuseshim.Buffer. 2015-07-24 13:47:00 +10:00
Aaron Jacobs 2c346ca77f Fixed kernelResponse methods. 2015-07-24 13:46:18 +10:00
Aaron Jacobs 7784641da1 Use buffer in commonOp.Respond. 2015-07-24 13:41:05 +10:00
Aaron Jacobs 9c1134ca3f Added a Buffer type. 2015-07-24 13:36:53 +10:00
Aaron Jacobs 3fe63db6fb Pasted from package fuseshim. 2015-07-24 13:26:25 +10:00
Aaron Jacobs 27eba3068c Fixed several issues that only showed up on Linux. 2015-07-24 13:24:12 +10:00
Aaron Jacobs f8a67d283f Fixed a mkdir bug on Linux. 2015-07-24 13:23:39 +10:00
Aaron Jacobs ab8c5728eb Fixed some size-related bugs on Linux. 2015-07-24 13:08:26 +10:00
Aaron Jacobs f3956ca109 Fixed some Linux build errors. 2015-07-24 12:57:29 +10:00
Aaron Jacobs 23cab6ad6f Read and write kernel messages directly instead of using fuseshim requests. 2015-07-24 12:51:42 +10:00
Aaron Jacobs 050bcb1c02 Fixed a bug. 2015-07-24 12:51:33 +10:00
Aaron Jacobs d9c8d95df7 Fixed a panic. 2015-07-24 12:51:33 +10:00
Aaron Jacobs 0f1a471c06 Revert "Log fuse errors in the test."
There are lots of benign errors that add noise.

This reverts commit 9a148bfd0246c3603ab580c4adfe548f5bd3e3b9.
2015-07-24 12:51:33 +10:00
Aaron Jacobs 503825fd5f Fixed a conversion bug. 2015-07-24 12:51:32 +10:00
Aaron Jacobs ff42037981 Changed method order. 2015-07-24 12:51:32 +10:00
Aaron Jacobs 497407fde2 Better debug logging for getattr. 2015-07-24 12:51:32 +10:00
Aaron Jacobs 85cd1cb299 Fixed error and debug logging. 2015-07-24 12:51:32 +10:00
Aaron Jacobs 9c2f2652f7 Write replies to the kernel. 2015-07-24 12:51:32 +10:00
Aaron Jacobs b6ae9475ba Partially implemented sendReply. 2015-07-24 12:51:32 +10:00
Aaron Jacobs 4a2eeda4ca Log fuse errors in the test. 2015-07-24 12:51:32 +10:00
Aaron Jacobs 9b8d9280ac Fixed a logging bug. 2015-07-24 12:51:32 +10:00
Aaron Jacobs 22c5b466f6 Fixed a bug. 2015-07-24 12:51:32 +10:00