patch-2.3.41 linux/include/linux/auto_fs.h
Next file: linux/include/linux/blkdev.h
Previous file: linux/include/linux/acpi.h
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Fri Jan 28 08:01:52 2000
- Orig file:
v2.3.40/linux/include/linux/auto_fs.h
- Orig date:
Wed Aug 18 16:44:22 1999
diff -u --recursive --new-file v2.3.40/linux/include/linux/auto_fs.h linux/include/linux/auto_fs.h
@@ -20,7 +20,8 @@
#include <linux/ioctl.h>
#include <asm/types.h>
-#define AUTOFS_PROTO_VERSION 3
+#define AUTOFS_MIN_PROTO_VERSION 3 /* Min version we support */
+#define AUTOFS_PROTO_VERSION 4 /* Current version */
/*
* Architectures where both 32- and 64-bit binaries can be executed
@@ -46,6 +47,7 @@
enum autofs_packet_type {
autofs_ptype_missing, /* Missing entry (mount request) */
autofs_ptype_expire, /* Expire entry (umount request) */
+ autofs_ptype_expire_multi, /* Expire entry (umount request) */
};
struct autofs_packet_hdr {
@@ -60,18 +62,35 @@
char name[NAME_MAX+1];
};
+/* v3 expire (via ioctl) */
struct autofs_packet_expire {
struct autofs_packet_hdr hdr;
int len;
char name[NAME_MAX+1];
};
+/* v4 multi expire (via pipe) */
+struct autofs_packet_expire_multi {
+ struct autofs_packet_hdr hdr;
+ autofs_wqt_t wait_queue_token;
+ int len;
+ char name[NAME_MAX+1];
+};
+
+union autofs_packet_union {
+ struct autofs_packet_hdr hdr;
+ struct autofs_packet_missing missing;
+ struct autofs_packet_expire expire;
+ struct autofs_packet_expire_multi expire_multi;
+};
+
#define AUTOFS_IOC_READY _IO(0x93,0x60)
#define AUTOFS_IOC_FAIL _IO(0x93,0x61)
#define AUTOFS_IOC_CATATONIC _IO(0x93,0x62)
#define AUTOFS_IOC_PROTOVER _IOR(0x93,0x63,int)
#define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93,0x64,unsigned long)
#define AUTOFS_IOC_EXPIRE _IOR(0x93,0x65,struct autofs_packet_expire)
+#define AUTOFS_IOC_EXPIRE_MULTI _IOW(0x93,0x66,int)
#ifdef __KERNEL__
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)