[SLL] limit on number of files in a directory and hashed dir vs. flat dir file access time

Scott Blachowicz scott.ssc at sabami.seaslug.org
Thu Nov 1 10:44:37 PDT 2007


On Thu, Nov 01, 2007 at 10:22:34AM -0700, Xeno Campanoli wrote:
> My apologies.  You're right.  It was total directories horizontally that
> were limited
> (as found with our tests) not files themselves.  So if you change your
> script to:
> > for i in `seq 1 33000`
> > do
> > 	#touch $i
> 	mkdir $i
> > done
> > 
> 
> You will see failures after 32000:
> 
> mkdir:  cannot created directory '32001':  Too many links!

Presumably that's because each subdirectory has a '..' entry that is a
hard link to its parent dir?

Scott


More information about the linux-list mailing list