lkml.org 
[lkml]   [2013]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] selftests : Adding symbolic link limits test script
On Fri, 27 Dec 2013 14:38:22 -0800
Andrew Morton <akpm@linux-foundation.org> wrote:

> On Wed, 25 Dec 2013 17:23:10 +0100 Fabian Frederick <fabf@skynet.be> wrote:
>
> > This patch adds fs directory in selftests and a script to explain recursive
> > and consecutive symbolic linking limits who have been debated
> > so many times.
>
> hm, it's a "test" which doesn't really test anything - it always
> succeeds.
>
> Why do you think the kernel needs this?

Thanks for testing Andrew !

As the script states, first loop is trying 10 recursive links but logically stops at 8.
The second one is trying 50 consecutive links but stops at 40.
Those limits are hardcoded values all over the place in vfs namei.c.
btw people have been asking for global definition, sysctl and so on for
years but nothing has changed AFAICS.

This script tries to show the difference between recursive and consecutive symlinking.
Besides this script could be useful for testing specific FS limitation as well.
If you find it useful, I can add some features to be more self-explanatory ...
If it's still not the case let's forget about it :)

Fabian


\
 
 \ /
  Last update: 2013-12-28 14:21    [W:0.055 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site