Re: 'out of space' vs 'out of inodes'?
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.
Bob
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Sat Jul 21 00:54:18 2007
This archive was generated by hypermail 2.1.8
: Thu Aug 09 2007 - 18:12:51 EDT
|