[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#189011: A better errno



On Sun:11:56, GOTO Masanori wrote:
> all programs check ENOSPC, not ENOINO.  This means that
> you have to change all programs which uses ENOSPC

Compatibility is a good point.

Thanks.

[...]
> So please consider ENOSPC is "something has no more space".

I'm OK with that.

Here's the big but.

BUT, Linux newbies will inevitably be confused and
frustrated when applications erroneously report
that file systems are out of space (ENOSPC).

[...]
> other method notifying us is needed.

At the moment, the best idea I can think of would
be to keep returning the errnos in errno.h, but
also place more specific errnos somewhere,
possibly in the application's stack, and provide a
libc call to return the specific errnos.

It seems to me this would 

1.) be compatible with existing applications and

2.) allow maintainers of newbie friendly
applications to retrieve more specific diagnostic
information.

Thanks,
Kingsley




Reply to: