OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2885-g238b886
Gerrit Code Review
gerrit@openafs.org
Wed, 5 Sep 2012 12:01:44 -0700 (PDT)
The following commit has been merged in the master branch:
commit 238b88624a8fef39557d397cc336c88bd8efc5b1
Author: Andrew Deason <adeason@sinenomine.net>
Date: Tue Aug 21 17:03:30 2012 -0500
LINUX: Avoid symlink-y resolution limits
Implementing the d_automount or follow_link function pointers for our
directories means that we can hit symlink resolution limits during
lookup, since we look like a "symlink". We can hit these limits pretty
easily if there are just too many directories in the lookup path.
Our pseudo-symlink directories cannot contribute to an infinite
resolution loop, since our destination is always an actual directory,
not a symlink that will result in more redirection. So, decrement the
total_link_count counter when our d_automount or follow_link code is
reached, so we do not contribute to hitting the max resolution limit.
Note that this is not related to recursive symlink lookup (link_count)
but only to the iterative symlink limit (total_link_count). Our
lookups are not recursive here, and we are not causing more recursive
lookups like a normal text-based symlink would do.
Change-Id: Id6d2edd614388ac0890eb7591caec25d375964ce
Reviewed-on: http://gerrit.openafs.org/8009
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/LINUX/osi_vnodeops.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
--
OpenAFS Master Repository