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

Bug#189011: A better errno



At Fri, 18 Apr 2003 15:23:57 -0700,
Kingsley G. Morse Jr. <change@nas.com> wrote:
> The ext2 file system now says it's out of disk
> space ("ENOSPC"), when it's really out of inodes.
> 
> That's bad.
> 
> It seems to me that it could return a more
> accurate error message.
> 
> That would be good.
> 
> 
> gotom wrote:
> > If you invent the nice idea, please tell us
> 
> 1.) Add a new line in errno.h for "Not Enough Inodes". 
>     It could be abbreviated as "ENOINO". For
>     example, mips64 errnos go up to 1133.
> 
> 2.) Find the spot in the ext2 code where it tests
>     for being out of inodes. I think may be in
>     kernel code called "ialloc.c".
> 
> 3.) Change the test to return "ENOINO".
> 
> 
> It also seems to me that:
> 
> 1.) several other file systems also use inodes,
>     such as ext3, Reiser, XFS and JFS. 
> 
> 2.) they could also return the more accurate
>     errno.

Well, but... all programs check ENOSPC, not ENOINO.  This means that
you have to change all programs which uses ENOSPC, and you have to
think about non-ENOINO file system.

So please consider ENOSPC is "something has no more space".  In this
case, something may be inode or data storage.  And other method
notifying us is needed.

Regards,
-- gotom



Reply to: