On Wed, May 31, 2006 at 08:19:08PM -0600, James Lee
wrote:> Is there a limit on number of hardlinks you can have in a directory? I
> know you can only have up to 32,000 subdirectories but it appears that
> this limit applies to hardlinks as well.
The limit has nothing to do with subdirectories. It's the
number of links to an inode, period. You can have 32K-1 names that
point to a particular inode. With subdirectories, the subdir/.. is a
name that points to this inode. With a hardlink, it's whatever you
specifed to ln(1).
You can have 32K-1 links on an inode.
Joel
--
Life's Little Instruction Book #510
"Count your blessings."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127