Re: Max number of symlinks
On Wed, 18 Jul 2001 igor@lid9c1.engr.ccny.cuny.edu wrote:
Hi,
It's hardcoded in the kernel here:
static inline int do_follow_link(struct dentry *dentry, struct nameidata *nd)
{
int err;
if (current->link_count >= 8)
goto loop;
current->link_count++;
UPDATE_ATIME(dentry->d_inode);
err = dentry->d_inode->i_op->follow_link(dentry, nd);
current->link_count--;
return err;
loop:
path_release(nd);
return -ELOOP;
}
Dunno why that particular limit was chosen..
Best regards,
-Vlad
> Dobrogo ...
> Obnaruzhil, chto u menya v potato
> (kernel 2.2.17 ili 2.2.15) glubina
> vlozhennosti symlink'ov =7.
> To est:
> org <-1 <-2 <-3 <-4 <-5 <-6
> i nomer 6 uzhe ne otkryt`: Oshibka:
> Too many levels of symbolic links
>
> Pokopalsya v ishodnikah kernela - nashel tolko
> pro zhestkiye link'i.
> Mozhet i ne kernel eto delaet, a libc?
>
> Kak by uvelichit` glubinu vlozhennosti?
> Ili est` kakaya-to vselenskya mudrost`
> za vyborom chisla 7?
>
> Spasibo.
> Igor.
Reply to: