Commit Graph

224 Commits (5348027205ba7a3565af455c3e6e94be57025215)

Author SHA1 Message Date
Aaron Jacobs 35021f0bfe Improved error messages. 2015-07-24 12:51:30 +10:00
Aaron Jacobs b5f954ccfb Added Convert support for the internal ops. 2015-07-24 12:51:30 +10:00
Aaron Jacobs 296d9cbc62 Declared internal ops. 2015-07-24 12:51:30 +10:00
Aaron Jacobs 290ac455fd Fixed some build errors. 2015-07-24 12:51:30 +10:00
Aaron Jacobs 9082660f6d Eliminated some unnecessary function calls. 2015-07-24 12:51:30 +10:00
Aaron Jacobs f717d87868 Fixed some build errors. 2015-07-24 12:51:30 +10:00
Aaron Jacobs a5b7862c5c Fixed the Convert interface. 2015-07-24 12:51:30 +10:00
Aaron Jacobs af893b822a Updated respond signatures. 2015-07-24 12:51:30 +10:00
Aaron Jacobs e2849d09f3 commonOp.Respond 2015-07-24 12:51:30 +10:00
Aaron Jacobs fc9297d3d1 commonOp.init 2015-07-24 12:51:29 +10:00
Aaron Jacobs 36e4dd8331 commonOp.ShortDesc 2015-07-24 12:51:29 +10:00
Aaron Jacobs a2c287f90a Updated commonOp fields again. 2015-07-24 12:51:29 +10:00
Aaron Jacobs 6ded0a543e Updated commonOp fields. 2015-07-24 12:51:29 +10:00
Aaron Jacobs 75e419f391 OpenFileOp.kernelResponse 2015-07-24 12:51:29 +10:00
Aaron Jacobs 5cc86afafb Fixed an error. 2015-07-24 12:51:29 +10:00
Aaron Jacobs 3d9ad48171 ReadSymlinkOp 2015-07-24 12:51:29 +10:00
Aaron Jacobs b7a46f5fc6 FlushFileOp 2015-07-24 12:51:29 +10:00
Aaron Jacobs d29e0a6f93 SyncFileOp 2015-07-24 12:51:29 +10:00
Aaron Jacobs 5e97b58fcc WriteFileOp 2015-07-24 12:51:29 +10:00
Aaron Jacobs 8c9daf83da ReleaseDirHandleOp 2015-07-24 12:51:29 +10:00
Aaron Jacobs d1c1155861 ReleaseFileHandleOp 2015-07-24 12:51:29 +10:00
Aaron Jacobs 86c921d9eb OpenDirOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs ecdc71b136 OpenFileOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs 90aee4644b ReadDirOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs fc142cb274 ReadFileOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs 7133c835aa RmDirOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs d8e3e30f99 UnlinkOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs f667900499 RenameOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs 88036b9232 CreateSymlinkOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs bf11280dcd CreateFileOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs 39b2936592 MkDirOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs 091d0e967c ForgetInodeOp 2015-07-24 12:51:28 +10:00
Aaron Jacobs a30301af46 SetInodeAttributesOp 2015-07-24 12:51:27 +10:00
Aaron Jacobs 93a670bc8c GetInodeAttributesOp 2015-07-24 12:51:27 +10:00
Aaron Jacobs f70c00c1ed LookUpInodeOp 2015-07-24 12:51:27 +10:00
Aaron Jacobs 7fb5d10b11 Begin on Convert. 2015-07-24 12:51:27 +10:00
Aaron Jacobs 8a92167cc8 Updated the signature of fuseops.Convert. 2015-07-24 12:51:27 +10:00
Aaron Jacobs b8bf3cacb4 Fixed some build errors. 2015-07-24 09:42:43 +10:00
Aaron Jacobs 8e0cba22dd Unexported unused Flags fields. 2015-07-24 09:42:43 +10:00
Aaron Jacobs 4dc22ba2e7 Use package fuseshim in package fuseops. 2015-07-24 09:42:42 +10:00
Aaron Jacobs e6f7fe6013 Killed fuseops.OpHeader. 2015-07-24 09:38:40 +10:00
Aaron Jacobs 591350f2c6 Fixed duplicate package documentation. 2015-07-24 09:35:14 +10:00
Aaron Jacobs 894e5ffba2 Fill in bfReq fields. 2015-07-22 22:27:48 +10:00
Aaron Jacobs 422fe4db37 Implemented respond methods. 2015-07-22 22:26:58 +10:00
Aaron Jacobs 2c1ba6d729 LookUpInodeOp.respond 2015-07-22 22:23:47 +10:00
Aaron Jacobs 2366f698e2 Added bfReq members. 2015-07-22 22:23:11 +10:00
Aaron Jacobs aff2fc2f9e Ripped out the toBazilfuseResponse logic from commonOp. 2015-07-22 22:19:49 +10:00
Aaron Jacobs f004d3ff4a Avoid calling Logf on the hot path when logging is disabled.
The call to commonOp.Logf in sendBazilfuseResponse is extremely hot for
allocations, presumably because it needs to allocate an argument slice.
It is normally not needed at all, so why pay for it?
2015-07-22 21:45:49 +10:00
Aaron Jacobs 4b1e4b55f9 Embed the bazilfuse response object within ReadFileOp.
This saves an allocation that is very much on the hot path in a
read-heavy load.
2015-07-22 21:32:10 +10:00
Aaron Jacobs c42ea09940 Update a reference to the now-gone flag. 2015-07-16 10:48:50 +10:00
Aaron Jacobs b6588a6d41 Added documentation for RenameOp. 2015-06-25 22:13:45 +10:00
Aaron Jacobs 515cdb41a8 Fixed a bug in memfs renaming. 2015-06-25 22:01:56 +10:00
Aaron Jacobs 4008a44fb6 Added another TODO. 2015-06-25 21:38:39 +10:00
Aaron Jacobs 9406c5bc29 Added more test names and TODOs. 2015-06-25 21:38:39 +10:00
Aaron Jacobs eeb412d406 Fixed a bug. 2015-06-25 21:38:39 +10:00
Aaron Jacobs b121025b48 Added Convert support. 2015-06-25 21:38:39 +10:00
Aaron Jacobs feb41dddfa Defined RenameOp. 2015-06-25 21:38:38 +10:00
Aaron Jacobs 91a3b44294 Improve error log output for unknown operations.
Previously:

    (unknown(inode=1)) error: function not implemented

Now:

    (*bazilfuse.GetxattrRequest(inode=1)) error: function not implemented

For GoogleCloudPlatform/gcsfuse#76.
2015-06-22 12:40:40 +10:00
Aaron Jacobs 11eadaed84 Removed InitOp. 2015-06-22 12:29:52 +10:00
Aaron Jacobs 119f9a18ce Changed the guidance for dealing with lookup counts at unmount time. 2015-06-09 11:04:26 +10:00
Aaron Jacobs 32fbc7f9e7 Fixed build errors.
Caused by jacobsa/bazilfuse@47700022b9.
2015-06-05 15:24:22 +10:00
Aaron Jacobs f650aab183 Updated fuseops.Convert. 2015-05-25 14:16:19 +10:00
Aaron Jacobs 41f376af5f Added commonOp.errorLogger. 2015-05-25 14:15:49 +10:00
Aaron Jacobs e0db5cf622 Renamed existing debug logging functions. 2015-05-25 14:13:24 +10:00
Aaron Jacobs bd4af3f5a5 Updated advice on create, symlink, and mkdir. 2015-05-21 15:30:08 +10:00
Aaron Jacobs a6e14f1878 Fixed a bug. 2015-05-19 16:08:13 +10:00
Aaron Jacobs aa6498ca1b Added convert support. 2015-05-19 16:05:54 +10:00
Aaron Jacobs 83baabeaf5 Added ReadSymlinkOp. 2015-05-19 16:05:01 +10:00
Aaron Jacobs 32c4d03ad1 Clarify that UnlinkOp applies to directories, too. 2015-05-19 16:02:20 +10:00
Aaron Jacobs e9a77cf27d Added Convert support. 2015-05-19 15:34:14 +10:00
Aaron Jacobs 16155913c4 Added CreateSymlinkOp. 2015-05-19 15:31:53 +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 fe90f319b3 Fixed a bug in handling of an unknown op type. 2015-05-05 12:40:37 +10:00
Aaron Jacobs 0c8f9cece8 Fix another osxfuse request ID reuse bug. 2015-05-05 11:47:05 +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 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 737ebd1e1f Fixed a livelock. 2015-05-05 10:07:34 +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 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