tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Filesystem limits

> Is there a portable way of finding out the limits for the maximum
> number of files and directories that can be created under a give
> directory?

I doubt it.  Traditional Unix has no such limits, and at least some of
the more popular filesystems NetBSD supports don't.  There are (and
have been) per-mount-point limits, set at filesystem create time, but
that's not very closely related.  (If you do want them, look at
statfs(2) and/or fstatfs(2) for an API, or df -i for command-line.)

Any such interface would be useful only when the filesystem in question
does support such limits.  (Of course, that may be enough for your

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index