summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-14 20:14:32 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-14 20:14:32 -0700
commit7d1f193d26bfe1366380dac0bafa8f2682f58439 (patch)
treebf7ea3248605cd1763994ac0ab0bd6e787653262 /include/linux
parent8b22c0c5387fcf1642c458482e8a278d7b49ac80 (diff)
[PATCH] autofs4: readdir fixes
From: Ian Kent <raven@themaw.net> a. Implement readdir and friends for directory lookup for late mounting. This is done largely by replacing a catch all condition in try_to_fill_dentry with appropriate cases. b. Add path calc. function in waitq.c to get extended path to return to daemon (for direct mounts). c. Add revalidate calls to sys_chdir and sys_chroot so that pwd lookups work correctly. d. Add ioctl to retrieve minor version for automount daemon (and me) to recognise module fix level. Bumped minor version to 5. From: Hugh Dickins <hugh@veritas.com> After chdir (or chroot) to non-existent directory on 2.6.5-mm5, you can no longer unmount filesystem holding working directory (or root).
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/auto_fs4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/auto_fs4.h b/include/linux/auto_fs4.h
index db0a814029e1..1494546329e5 100644
--- a/include/linux/auto_fs4.h
+++ b/include/linux/auto_fs4.h
@@ -23,6 +23,8 @@
#define AUTOFS_MIN_PROTO_VERSION 3
#define AUTOFS_MAX_PROTO_VERSION 4
+#define AUTOFS_PROTO_SUBVERSION 5
+
/* Mask for expire behaviour */
#define AUTOFS_EXP_IMMEDIATE 1
#define AUTOFS_EXP_LEAVES 2
@@ -46,6 +48,7 @@ union autofs_packet_union {
};
#define AUTOFS_IOC_EXPIRE_MULTI _IOW(0x93,0x66,int)
+#define AUTOFS_IOC_PROTOSUBVER _IOR(0x93,0x67,int)
#endif /* _LINUX_AUTO_FS4_H */