Operating System - HP-UX
1833641 Members
3680 Online
110062 Solutions
New Discussion

Re: Maximum directories into one directory

 
Admin.SIF
Frequent Advisor

Maximum directories into one directory

We currently work on a e-commerce solution which all section of the product will be place into a distinct sub-directory. We use HP-UX 11 to support all the site.

Is there a maximum limit of hao many sub-directory can be create into a simple directory? If it exist, can we change that value by updating the Kernel (in case it's too small)?
Sysd. Amin. Inforef
3 REPLIES 3
Bruce Regittko_1
Esteemed Contributor

Re: Maximum directories into one directory

Hi,

The maximum is 32,765 subdirectories per directory. See the following thread for an explanation, in particular, Rik Tytgat's response.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x16e1f841489fd4118fef0090279cd0f9,00.html

--Bruce
www.stratech.com/training
SBC ITRC
Occasional Contributor

Re: Maximum directories into one directory

Hi,

There is a patch that will let you go to 64K subdirectories. The patch for 11i is PHKL_28117.
Helen French
Honored Contributor

Re: Maximum directories into one directory

The subdirectory is limited to the LINK_MAX parameter. The default is 32767, but it might be greater than that in practical.

# man 5 limits (limits.h)
# man mkdir (for more details)
Life is a promise, fulfill it!