summaryrefslogtreecommitdiffstats
path: root/include/linux/umsdos_fs.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-09-19 19:15:08 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-09-19 19:15:08 +0000
commit03ba4131783cc9e872f8bb26a03f15bc11f27564 (patch)
tree88db8dba75ae06ba3bad08e42c5e52efc162535c /include/linux/umsdos_fs.h
parent257730f99381dd26e10b832fce4c94cae7ac1176 (diff)
- Merge with Linux 2.1.121.
- Bugfixes.
Diffstat (limited to 'include/linux/umsdos_fs.h')
-rw-r--r--include/linux/umsdos_fs.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/include/linux/umsdos_fs.h b/include/linux/umsdos_fs.h
index c9cfd16e6..7a170c115 100644
--- a/include/linux/umsdos_fs.h
+++ b/include/linux/umsdos_fs.h
@@ -1,6 +1,9 @@
#ifndef LINUX_UMSDOS_FS_H
#define LINUX_UMSDOS_FS_H
+/* #define UMSDOS_DEBUG 1 */
+#define UMSDOS_PARANOIA 1
+
#define UMSDOS_VERSION 0
#define UMSDOS_RELEASE 4
@@ -15,6 +18,9 @@
#ifndef _LINUX_TYPES_H
#include <linux/types.h>
#endif
+#ifndef _LINUX_LIMITS_H
+#include <linux/limits.h>
+#endif
#ifndef _LINUX_DIRENT_H
#include <linux/dirent.h>
#endif
@@ -23,6 +29,27 @@
#endif
+#ifdef __KERNEL__
+/* #Specification: convention / PRINTK Printk and printk
+ * Here is the convention for the use of printk inside fs/umsdos
+ *
+ * printk carry important message (error or status).
+ * Printk is for debugging (it is a macro defined at the beginning of
+ * most source.
+ * PRINTK is a nulled Printk macro.
+ *
+ * This convention makes the source easier to read, and Printk easier
+ * to shut off.
+ */
+# define PRINTK(x)
+# ifdef UMSDOS_DEBUG
+# define Printk(x) printk x
+# else
+# define Printk(x)
+# endif
+#endif
+
+
struct umsdos_fake_info {
char fname[13];
int len;
@@ -93,7 +120,7 @@ struct umsdos_info {
#define UMSDOS_READDIR_EMD _IO(0x04,216) /* read the EMD file only. */
#define UMSDOS_GETVERSION _IO(0x04,217) /* Get the release number of UMSDOS */
#define UMSDOS_INIT_EMD _IO(0x04,218) /* Create the EMD file if not there */
-#define UMSDOS_DOS_SETUP _IO(0x04,219) /* Set the defaults of the MsDOS driver */
+#define UMSDOS_DOS_SETUP _IO(0x04,219) /* Set the defaults of the MS-DOS driver. */
#define UMSDOS_RENAME_DOS _IO(0x04,220) /* rename a file/directory in the DOS
* directory only */