patch-2.1.41 linux/fs/autofs/autofs_i.h
Next file: linux/fs/autofs/inode.c
Previous file: linux/drivers/sound/ulaw.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Tue May 27 15:23:46 1997
- Orig file:
v2.1.40/linux/fs/autofs/autofs_i.h
- Orig date:
Thu May 15 16:48:03 1997
diff -u --recursive --new-file v2.1.40/linux/fs/autofs/autofs_i.h linux/fs/autofs/autofs_i.h
@@ -12,6 +12,8 @@
/* Internal header file for autofs */
+#define DEBUG_WAITLIST 1
+
#include <linux/auto_fs.h>
/* This is the range of ioctl() numbers we claim as ours */
@@ -120,7 +122,10 @@
#define END_OF_TIME ((time_t)((unsigned long)((time_t)(~0UL)) >> 1))
#endif
+#define AUTOFS_SBI_MAGIC 0x6d4a556d
+
struct autofs_sb_info {
+ u32 magic;
struct file *pipe;
pid_t oz_pgrp;
int catatonic;
@@ -136,6 +141,15 @@
static inline int autofs_oz_mode(struct autofs_sb_info *sbi) {
return sbi->catatonic || current->pgrp == sbi->oz_pgrp;
}
+
+/* Debug the mysteriously disappearing wait list */
+
+#ifdef DEBUG_WAITLIST
+#define CHECK_WAITLIST(S,O) autofs_check_waitlist_integrity(S,O)
+void autofs_check_waitlist_integrity(struct autofs_sb_info *,char *);
+#else
+#define CHECK_WAITLIST(S,O)
+#endif
/* Hash operations */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov