tech-kern archive

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

Re: Max. number of subdirectories dump



On 2013-08-18 15:58, Martin Husemann wrote:
On Sun, Aug 18, 2013 at 03:08:21PM +0200, Manuel Wiesinger wrote:
When testing, the maximum number of subdirectories was 32767, which is
(2^15)-1, when trying to add a 32767th directory, I got the error
message: "Too many links".

This one is simple: a subdirectory has a ".." entry, which increases
the link count in the parent directory, so overall you can not have
more than LINK_MAX subdirectories.

When my tools reads only the single indirect blocks, it get all 32767
subdirectories.

This is assuming there are no regular files in the directory. If there
are (first, before the subdirectories), will it still work?

It might also fail if the names of the subdirectories are rather long, I would suspect...

        Johnny

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt%softjar.se@localhost             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


Home | Main Index | Thread Index | Old Index