A tevent function to propagate error info up the stack

Jeremy Allison jra at samba.org
Wed May 1 13:35:58 MDT 2013


On Wed, May 01, 2013 at 03:02:27PM -0400, Simo wrote:
> On 05/01/2013 02:50 PM, Stefan (metze) Metzmacher wrote:

> > I had the idea of keeping a real error stack, but never finished a
> > design for it.
> >
> > My idea was to have an opaque struct tevent_req_error_stack
> > (or maybe just tevent_req_stack in order to make it more generic and also
> > use it for success) and somehow pass it between the layers.
> > special tevent_req_debug() functions could then also add additional
> > information.
> >
> > The toplevel caller would initialize the error stack and pass it down
> > and when it receives an error it could call a function to get ndr_print
> > like representation
> > of the error stack.
> >
> > Most times it's really the top level caller who has to decide if it's
> > worth to print out a DEBUG message.
> > For a SMB request from the client we would have such stack object, then
> > we could decide to just
> > debug anything if the whole request failed.
> I would like this very much.

Oh me too ! Metze, you just talked yourself into some extra work :-).


More information about the samba-technical mailing list