Too many inodes

Michael "Ford" Ditto ditto at cbmvax.UUCP
Wed Nov 2 11:33:00 AEST 1988


In article <580 at mbph.UUCP> hybl at mbph.UUCP (Albert Hybl  Dept of Biophysics  SM) writes:
>there are a total of 6192 inodes assigned to the file system.
>That is as it should be.  However, the du|wc count reports 6368
>files/directories!

"du -a" will count each link (directory entry) once, even if it refers
to an inode that was already counted, thus for every file that has two
links, your "du -a|wc -l" will be off by one (and off by two for each
3-link file, etc.).

In the news spool directory, multiple links are used when articles are
crossposted.
-- 
					-=] Ford [=-

"The number of Unix installations	(In Real Life:  Mike Ditto)
has grown to 10, with more expected."	ford at kenobi.cts.com
- The Unix Programmer's Manual,		...!sdcsvax!crash!elgar!ford
  2nd Edition, June, 1972.		ditto at cbmvax.commodore.com



More information about the Comp.bugs.sys5 mailing list