git: sys/kern: Retry nlookup if nresolve returned ESTALE

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Jun 2 16:47:32 PDT 2016


commit ca7294164d097ddba87f8b85282cdedee3fa7641
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu May 19 03:07:27 2016 +0900

    sys/kern: Retry nlookup if nresolve returned ESTALE
    
    Make nlookup retry the whole thing if nresolve VOP returned ESTALE.
    
    This will be used by autofs (in the next few commits).
    This doesn't affect other filesystems, because no other filesystem
    returns ESTALE.
    
    Autofs needs this because a target filesystem may get mounted under
    the root directory of autofs while running nresolve VOP of autofs.
    Autofs tells nlookup the topology has changed by returning ESTALE.
    Unless nlookup retries the lookup, the result is obsolete.

Summary of changes:
 sys/kern/vfs_nlookup.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ca7294164d097ddba87f8b85282cdedee3fa7641


-- 
DragonFly BSD source repository



More information about the Commits mailing list