Penguin

Differences between current version and previous revision of EMLINK.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Saturday, December 4, 2004 2:45:21 am by PerryLorier
Older page: version 1 Last edited on Monday, January 6, 2003 10:51:49 pm by JohnMcPherson Revert
@@ -12,5 +12,9 @@
 and /usr/src/linux-2.4.19/include/linux/reiserfs_fs.h has: 
  #define REISERFS_LINK_MAX (MAX_US_INT - 1000) 
 (for maximum unsigned integer on the system). 
  
-This could be caused by a directory having too many files in it (each takes 1 link entry in the directory's i_node ) or possibly filesystem corruption
+This could be caused by a directory having too many subdirectories (each subdirectory has .. as a hardlink to it's parent directory which causes that directory's hardlink count to be increased by one. So yes, this does mean that you are limited to 32000 subdirectories in one directory in ext3, even if you have hashdirs enabled. ) As a consequence of this you can stat(2) a directory and add one (for ..) and you will know how many directories are in the current directory. ( or subtract one (for .) to find out how many subdirectories there are).  
+  
+Some file systems (such as [FAT]) don't have hardlinks so the hardlink count can't overflow, and you can't rely on the hardlink count of a directory to be representive of how many subdirectories it has.  
+  
+What a confusing world we live in