[PATCH] Re: 2.1.79 + fat = FUBAR

Bernhard Rosenkraenzer (linux@bero-online.ml.org)
Tue, 13 Jan 1998 18:26:21 +0000 (GMT)


On Tue, 13 Jan 1998, David Burrows wrote:

> The subject pretty much says it all, I had a frantic stab to try to get it
> to work but ended up "rm -rf /usr/src/linux" instead. I was attempting to
> compile fat/vfat support as modules.

This is not the cleanest way to fix things, but it works...

diff -urN linux2179orig/fs/vfat/namei.c linux2179/fs/vfat/namei.c
--- linux2179orig/fs/vfat/namei.c Tue Jan 13 18:24:48 1998
+++ linux2179/fs/vfat/namei.c Tue Jan 13 18:25:06 1998
@@ -10,6 +10,8 @@
* the problem, send a script that demonstrates it.
*/

+#define slot_info vfat_slot_info
+
#include <linux/config.h>
#define __NO_VERSION__
#include <linux/module.h>
diff -urN linux2179orig/include/linux/msdos_fs.h
linux2179/include/linux/msdos_fs.h
--- linux2179orig/include/linux/msdos_fs.h Tue Jan 13 18:24:04 1998
+++ linux2179/include/linux/msdos_fs.h Tue Jan 13 18:25:39 1998
@@ -289,6 +289,9 @@
extern unsigned char fat_uni2esc[];
extern unsigned char fat_esc2uni[];

+/* cache.c */
+int fat_get_cluster(struct inode *inode,int cluster);
+
/* fatfs_syms.c */
extern int init_fat_fs(void);
extern void cleanup_fat_fs(void);