git: usr.sbin/autofs: Workaround namecache bug after unmount

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


commit ce54322c03058ba2986bfb3d2ebfc98362ad941d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun May 29 13:59:24 2016 +0900

    usr.sbin/autofs: Workaround namecache bug after unmount
    
    autounmountd gets affected by the namecache bug mentioned in
    https://bugs.dragonflybsd.org/issues/2908.
    
    This can be worked around by stat(2) (or any syscall that resolves
    the name once again) after unmount failed with EBUSY.
    
    Without this workaround, a process at automounted filesystem will
    see ENOTCONN after autounmountd's attempt to unmount. This must
    not be removed until the namecache bug is fixed.

Summary of changes:
 usr.sbin/autofs/autounmountd.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list