Re: 'out of space' vs 'out of inodes'?
On Fri, Jul 20, 2007 at 10:54:00PM -0600, Bob Proulx wrote:
> Kevin Mark wrote:
> > A general Linux question: why does Linux report 'out of space' error
> > when it runs out of inodes? Can't it distinguish between the 2
> > conditions to give the correct message or is there some other issue?
> > Just curious as I just go this after making 1,000,000 small test files
> > and got this (du -m -i).
>
> Check out /usr/include/asm-generic/errno-base.h and see that the error
> you are mostly likely getting is ENOSPC which gets translated to the
> libc sys_errlist as "No space left on device". There is just the one
> error code there, no space, and I believe is simply used generically
> for both errors. There is no E-out-of-inodes error code. Therefore
> no way for userland programs to report anything different.
>
Hi Bob,
thanks for the pointer. So it seems like something that goes back aways
in Unix land, at least if it is in a 'generic' code. So I'd expect to
have the same thing in bsd, linux (and maybe win32?). Hmm. I cant think
of why a full inode table would be treated the same as a full partition.
Will have to look in some unix lore maybe...
cheers,
Kev
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to help Debian! |
|_______ Unless I ask to be CCd, assume I am subscribed _______|
Reply to: