UFS files in a directory limit?

Bruce Evans brde at optusnet.com.au
Tue Mar 23 21:59:01 UTC 2010


On Sun, 21 Mar 2010, Kirk McKusick wrote:

>> From: Ivan Voras <ivoras at freebsd.org>
>> What is the limit on the number of files in a directory on UFS? I always
>> thought it is 32,767 (or near it) but now I see several directories on a
>> server with more than 36,000 files (yes it's inefficient, that's not the
>> point).
>
> The only limit on the size of a directory is the number of files that
> you can have in the filesystem. There is a limit of 2^16 directories
                                                       2^15-1
> within a directory due to the limit on the number of hard links.

Bruce


More information about the freebsd-fs mailing list