Commit Graph

49 Commits (964ae1b4e511327cdb38c109336407b65e6f7655)

Author SHA1 Message Date
Aaron Jacobs 964ae1b4e5 Don't rely on fuseshim for errors. 2015-07-24 14:02:55 +10:00
Aaron Jacobs 7784641da1 Use buffer in commonOp.Respond. 2015-07-24 13:41:05 +10:00
Aaron Jacobs d9c8d95df7 Fixed a panic. 2015-07-24 12:51:33 +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 b0acac98d5 Fixed a panic. 2015-07-24 12:51:31 +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 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 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 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 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 0c8f9cece8 Fix another osxfuse request ID reuse bug. 2015-05-05 11:47:05 +10:00
Aaron Jacobs 2aed770c32 commonOp.Respond 2015-05-05 10:25:25 +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 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 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
Aaron Jacobs a7de8c87e8 Made commonOp a bit less opaque. 2015-05-01 11:57:37 +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 3a1fc0ea46 Make op descriptions nicer. 2015-05-01 11:24:05 +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 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 7a82927f63 commonOp.respond 2015-05-01 10:57:49 +10:00
Aaron Jacobs d599dcd23a Split up convert.go a bit. 2015-05-01 10:49:50 +10:00