path: root/sys/sys/errno.h
diff options
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-03-12 07:54:42 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-03-12 07:54:42 +0000
commit213ed8385587440539d32a2198056db72a10dba4 (patch)
tree356e34e2718bdff932d4944afc16befc22b14933 /sys/sys/errno.h
parent6d3eca246cc7cbf84e8b6eee81beb0593017605d (diff)
Fix autofs triggering problem. Assume you have an NFS server,, with share "share". This commit fixes a problem where "mkdir /net/" would return spurious error instead of creating the directory if the target filesystem wasn't mounted yet; subsequent attempts would work correctly. The failure scenario is kind of complicated to explain, but it all boils down to calling VOP_MKDIR() for the target filesystem (NFS) with wrong dvp - the autofs vnode instead of the filesystem root mounted over it. Reviewed by: kib@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5442
Notes: svn path=/head/; revision=296715
Diffstat (limited to 'sys/sys/errno.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index d4c59504cc6a..52efd3193a0e 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -190,6 +190,7 @@ __END_DECLS
#define EJUSTRETURN (-2) /* don't modify regs, just return */
#define ENOIOCTL (-3) /* ioctl not handled by this layer */
#define EDIRIOCTL (-4) /* do direct ioctl in GEOM */
+#define ERELOOKUP (-5) /* retry the directory lookup */