summaryrefslogtreecommitdiffstats
path: root/sys/sys/namei.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-04-27 09:00:47 +0000
committerjeff <jeff@FreeBSD.org>2005-04-27 09:00:47 +0000
commita6baba06d1cf1f5e56ba23805d837db4b42c35da (patch)
tree73d8dd5e1d8b7c0d6b2ce08ee9031c3e5fc006aa /sys/sys/namei.h
parente2c005ba3b47c8eb126e6fbb52256ade85d17e70 (diff)
downloadFreeBSD-src-a6baba06d1cf1f5e56ba23805d837db4b42c35da.zip
FreeBSD-src-a6baba06d1cf1f5e56ba23805d837db4b42c35da.tar.gz
- Add an ISOPEN flag that filesystems can use to determine if a namei()
caller will be interested in the actual data contents of a vnode after a successful lookup. This intended to help deal with lifetime issues for device cloning and to alert autofs when filesystems need to be mounted.
Diffstat (limited to 'sys/sys/namei.h')
-rw-r--r--sys/sys/namei.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index 946f4e5..9b62a3d 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -134,6 +134,7 @@ struct nameidata {
#define DOWHITEOUT 0x0040000 /* do whiteouts */
#define WILLBEDIR 0x0080000 /* new files will be dirs; allow trailing / */
#define ISUNICODE 0x0100000 /* current component name is unicode*/
+#define ISOPEN 0x0200000 /* caller is opening; return a real vnode. */
#define NOCROSSMOUNT 0x0400000 /* do not cross mount points */
#define NOMACCHECK 0x0800000 /* do not perform MAC checks */
#define MPSAFE 0x1000000 /* namei() must acquire Giant if needed. */
OpenPOWER on IntegriCloud