Re: 'out of space' vs 'out of inodes'?
- From: Kevin Mark <kevin.mark@xxxxxxxxxxx>
- Date: Sat, 21 Jul 2007 02:43:15 -0400
On Fri, Jul 20, 2007 at 10:54:00PM -0600, Bob Proulx wrote:
Kevin Mark wrote:Hi Bob,
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.
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
- Follow-Ups:
- Re: 'out of space' vs 'out of inodes'?
- From: Mike Bird
- Re: 'out of space' vs 'out of inodes'?
- References:
- 'out of space' vs 'out of inodes'?
- From: Kevin Mark
- Re: 'out of space' vs 'out of inodes'?
- From: Bob Proulx
- 'out of space' vs 'out of inodes'?
- Prev by Date: Re: [Fwd: dh_gencontrol error]
- Next by Date: Re: 'out of space' vs 'out of inodes'?
- Previous by thread: Re: 'out of space' vs 'out of inodes'?
- Next by thread: Re: 'out of space' vs 'out of inodes'?
- Index(es):
Relevant Pages
|