Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 12:24:48 -0500
From:      Tim McMillen <timcm@umich.edu>
To:        "Hiu F. Ho" <hiuho@yahoo.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Limit on number of sub-directories?
Message-ID:  <01020712244807.04621@tim.elnsng1.mi.home.com>
In-Reply-To: <20010207165114.54119.qmail@web9807.mail.yahoo.com>
References:  <20010207165114.54119.qmail@web9807.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday February 07, 2001 11:51, Hiu F. Ho wrote:
> Hi,
>
> Is there a limit on the number of sub-directories I can have in a
> directory?  (I'm using FreeBSD 4.0, 4.1, and 4.2.)  Thank you.

Yes, but it is pretty large.  I'm not an ffs expert, but after reading 
in the SMM, the only limit I see is in the number of inodes allocated 
when the filesystem is created.  See man newfs for the info on how many 
inodes are created.  As I understand it, by default there is an inode 
created for every 4k of disk space per filesystem.  So it is possible 
to create too many directories and use up all the inodes.  That means 
you could only create 250 files in a MB of space.  But for a 1gb 
filesystem that works out to 250,000 fiels so it should be enough.  As 
it says in the manpage that means the average file is expected to be 
4k.  If yours is smaller you need more inodes.
	To get more inodes, you need to recreate the filesystem with a lower 
value for -i.  More inodes means a longer fsck time also, so that is 
why the default is low I guess.

					Tim

>
> -Hiu
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 

/""\ 
\  / 
 X ASCII Ribbon Campaign - Say NO to HTML in email 
/  \


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01020712244807.04621>