Re: PATCH: smart symlink loop detection.

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 14 Apr 1998 21:27:03 +0100 (BST)


> > Are there path-length limits elsewhere in the kernel?
>
> Yes. A PAGE_SIZE is the maximum size of any path (and that includes the
> ending '\0'). This shows in many places, like "get_name()" and
> "sys_getcwd()", and it is acceptable to consider this a real limit.

This has a peculiar property in enabling 8K and 32K page machines to create
an ext2fs other systems cannot read 8)

> We need the limit anyway, to make our stack size limited.

Indeed but would min(4096, PAGESIZE) be better ?

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu