From 2cde92d5def8089db7ebc64c8fd3f7f94cd4834a Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 5 May 2015 10:29:48 +1000 Subject: [PATCH] Defined new contract. --- fuseops/convert.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fuseops/convert.go b/fuseops/convert.go index a9c6c1f..0b8729b 100644 --- a/fuseops/convert.go +++ b/fuseops/convert.go @@ -25,9 +25,12 @@ import ( // This function is an implementation detail of the fuse package, and must not // be called by anyone else. // -// Convert the supplied bazilfuse request struct to an Op, returning nil if it -// is unknown. finished will be called with the error supplied to o.Respond -// when the user invokes that method. +// Convert the supplied bazilfuse request struct to an Op. finished will be +// called with the error supplied to o.Respond when the user invokes that +// method. +// +// It is guaranteed that o != nil. If the op is unknown, a special unexported +// type will be used. func Convert( opCtx context.Context, r bazilfuse.Request,