Re: LINK_MAX

Andreas Schwab (schwab@suse.de)
09 Nov 1999 20:56:04 +0100


Bruce Harada <bruce@ask.ne.jp> writes:

|> >> Just a quick question - why is LINK_MAX in limits.h restricted to
|> >> 127? EXT2_LINK_MAX is 32000, so is there any reason for keeping
|> >> the value of LINK_MAX so low?
|> >
|> >As far as I know symlinks are handled by recursive mechanisms inside the
|> >kernel, and amount of kernel stack is limited.
|>
|> Whoops - that would explain it, I guess...

LINK_MAX has nothing to do with symlinks. That's the maximum number of
*hard* links an inode can have.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/