On Mon, 14 May 2012, Tommi Virtanen wrote:
> On Fri, May 11, 2012 at 6:21 PM, Noah Watkins <[email protected]> wrote:
> > Return an error rather than a segfault if a client uses the interface
> > when unmounted. The Java bindings were explicitly enforcing the
> > mounted state, but this was overly complicated, uncommon, and better
> > handled with a simple exception that can be checked at libcephfs level.
> ...
> > +  if (!cmount->is_mounted())
> > +    return -EDOM;
> 
> Noah, this is not really about your patch, as existing code already
> has return -EDOM, but... oh boy does the API abuse POSIX errors.
> 
> "Numerical argument out of domain".

"Transport endpoint not connected"?

Reply via email to