patch-2.1.120 linux/include/linux/umsdos_fs.h
Next file: linux/include/linux/umsdos_fs.p
Previous file: linux/include/linux/ufs_fs.h
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Fri Sep 4 19:24:02 1998
- Orig file:
v2.1.119/linux/include/linux/umsdos_fs.h
- Orig date:
Fri Jul 31 17:10:57 1998
diff -u --recursive --new-file v2.1.119/linux/include/linux/umsdos_fs.h linux/include/linux/umsdos_fs.h
@@ -1,6 +1,8 @@
#ifndef LINUX_UMSDOS_FS_H
#define LINUX_UMSDOS_FS_H
+#define UMS_DEBUG 1
+
#define UMSDOS_VERSION 0
#define UMSDOS_RELEASE 4
@@ -23,6 +25,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 UMS_DEBUG
+# define Printk(x) printk x
+# else
+# define Printk(x)
+# endif
+#endif
+
+
struct umsdos_fake_info {
char fname[13];
int len;
@@ -93,7 +116,7 @@
#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 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov