Re: BIND 8.1.2 uncompilable under 2.1.9x

Raul Miller (rdm@test.legislate.com)
Sun, 12 Apr 1998 12:54:52 -0400


Matthias Urlichs <smurf@noris.de> wrote:
> The reason for this is that their way to symlink to the sources has
> links of the form SRC -> ../SRC/foo, nested a few levels deep. Linux
> limits to 5 levels, which isn't enough. Oops.
>
> - Increase the default to 10 or so
> - Make it configurable, there's this new /proc/sys/fs subdirectory...

Or make depth exceeded be a soft failure: once depth is exceeded, start
keeping two parallel copies of next symlink. Update on one advance to
next symlink twice for every once on the other. If ever device and inode
are the same you've found a loop.

Of course, if the loop is a thousand sylinks deep, you'll have to do
something like 3000 readlinks before you detect it. Probably this means
that while in the depth exceeded algorithm you should be very polite
about resource use.

-- 
Raul

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