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

Re: Max number of symlinks



Vot chto ya nashel po etomu povodu:
  http://uwsg.iu.edu/hypermail/linux/kernel/9911.2/0667.html
a imenno:
-----------------------------------
 "kernel stack is too small" - it fits at the end of 2-page per-process
area 
which also holds the task_struct. This is also why the max symlink depth
is 
3 instead of something more common (and useful; 3 causes some grief for us 
when so many things are symlinks into AFS and we use symlinks in AFS to 
"version" software release areas).
---------------------------------
Eto konechno drevniye dela (1999god), no mozhet ideya 
i ne ochen` izmenilas` v etom otnoshenii.

Nu a poka i 8 urovney v 2.2.x i to -oblegcheniye.

Igor.


On Sat, 21 Jul 2001, Vlad Harchev wrote:

> On Thu, 19 Jul 2001 igor@lid9c1.engr.ccny.cuny.edu wrote:
> 
>  Hi, 
> 
> > 
> > Ogromnoye spasibo.
> > Posle Vashey podskazki ya nashel analogichniy kusok v 2.2.17:
> > fs/namei.c:
> >   if (current->link_count < 5)
> > 
> > Vy navernoye ssylalis` na kernel 2.4.x?
> 
>  Да, код из 2.4.2.
> 
> > Vidimo, tam narodu dali symlink'ov pobolshe.
> > Nu i otlichno.
> 
>  Хотя IMO лучше бы было  поднять лимит до 50.
> 
> > Igor.
> > 
> > 
> > On Thu, 19 Jul 2001, Vlad Harchev wrote:
> > 
> > > 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.
> > > 
> > > 
> 
>  Best regards,
>   -Vlad
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-russian-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 



Reply to: