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@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



--
| .''`. == 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 _______|


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Problem with apt
    ... After a fresh install of Debian Squeeze I try to update the system's ... Sub-process returned an error code ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: out of space vs out of inodes?
    ... when it runs out of inodes? ... conditions to give the correct message or is there some other issue? ... There is no E-out-of-inodes error code. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: How to send mails with attachments for each file in a directory ?
    ... find: missing argument to `-exec' ... sendmail process failed with error code 1 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Weird warning from console-kit-daemon
    ... but I still think physical hard drive space is ... How about inodes? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: More fun (not!) with JRE
    ... Oh I will, trust me!! ... ;-) Just as a point of fact however, Java is supposed to be OS independent isn't it. ... I was able to capture some error code when accessing the site. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)