patch-1.3.96 linux/fs/affs/amigaffs.c
Next file: linux/fs/affs/amigaffs.h
Previous file: linux/fs/Makefile
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Fri Apr 26 12:12:24 1996
- Orig file:
v1.3.95/linux/fs/affs/amigaffs.c
- Orig date:
Tue Apr 23 13:57:11 1996
diff -u --recursive --new-file v1.3.95/linux/fs/affs/amigaffs.c linux/fs/affs/amigaffs.c
@@ -1,10 +1,15 @@
/*
* linux/fs/affs/amigaffs.c
*
+ * (C) 1996 Stefan Reinauer - Modified to compile as Module
+ *
* (C) 1993 Ray Burr - Amiga FFS filesystem.
*
*/
+
+#include <linux/module.h>
+
#include <linux/fs.h>
#include <linux/affs_fs.h>
#include <linux/mm.h>
@@ -91,7 +96,7 @@
return file_end->file_name[0];
}
-/* Get the key number of the first extention block for the file
+/* Get the key number of the first extension block for the file
header pointed to by FH_DATA. */
int affs_get_extension (int bsize, void *fh_data)
@@ -127,4 +132,21 @@
{
return register_filesystem(&affs_fs_type);
}
+
+#ifdef MODULE
+int init_module(void)
+{
+ int status;
+
+ if ((status = init_affs_fs()) == 0)
+ register_symtab(0);
+ return status;
+}
+
+void cleanup_module(void)
+{
+ unregister_filesystem(&affs_fs_type);
+}
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this