Commit Graph

246 Commits (b6e2754edfa8ac864bd26efe8541ebf2ee6563eb)

Author SHA1 Message Date
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 d9c8d95df7 Fixed a panic. 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 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
Aaron Jacobs 75e9eb21a2 convertTime 2015-07-24 12:51:32 +10:00
Aaron Jacobs 987b494dca Finished with kernelResponse methods. 2015-07-24 12:51:32 +10:00
Aaron Jacobs b7d2d61e21 More kernelResponse methods. 2015-07-24 12:51:31 +10:00
Aaron Jacobs 350f75b812 CreateFileOp.kernelResponse 2015-07-24 12:51:31 +10:00
Aaron Jacobs 4ce589bcf1 SetInodeAttributesOp.kernelResponse 2015-07-24 12:51:31 +10:00
Aaron Jacobs c59b546a87 GetInodeAttributesOp.kernelResponse 2015-07-24 12:51:31 +10:00
Aaron Jacobs 99efba2200 LookUpInodeOp.kernelResponse 2015-07-24 12:51:31 +10:00
Aaron Jacobs e226901fc6 Fixed a bunch of build errors. 2015-07-24 12:51:31 +10:00
Aaron Jacobs 32dc0dc4da Started on LookUpInodeOp.kernelResponse. 2015-07-24 12:51:31 +10:00
Aaron Jacobs 9206e9af94 Refactored OpenFileOp.kernelResponse. 2015-07-24 12:51:31 +10:00
Aaron Jacobs 738a1dad7d InternalStatFSOp.kernelResponse 2015-07-24 12:51:31 +10:00
Aaron Jacobs 707d5245b0 Killed bfReq fields. 2015-07-24 12:51:31 +10:00
Aaron Jacobs b0acac98d5 Fixed a panic. 2015-07-24 12:51:31 +10:00
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