Messages in this thread Patch in this message | | | Date | Wed, 14 Jan 1998 01:15:25 +1100 (EST) | From | Emmanuel Galanos <> | Subject | [PATCH] fat compile problems in 2.1.79 |
| |
Hi, Attached is a really simple patch so that fat can compile. Also a question sysctl dosn't need proc support to work right? because sysctl won't compile if proc is disabled...
-- eman diff -ur linux-2.1.79/fs/vfat/namei.c linux/fs/vfat/namei.c --- linux-2.1.79/fs/vfat/namei.c Wed Jan 14 01:00:16 1998 +++ linux/fs/vfat/namei.c Wed Jan 14 01:03:56 1998 @@ -321,7 +321,7 @@ static int vfat_find(struct inode *dir,struct qstr* name, int find_long,int new_filename,int is_dir, - struct slot_info *sinfo_out); + struct vfat_slot_info *sinfo_out); /* Checks the validity of a long MS-DOS filename */ /* Returns negative number on error, 0 for a normal @@ -519,7 +519,7 @@ int res; int spaces; char buf[8]; - struct slot_info sinfo; + struct vfat_slot_info sinfo; const char *name_start; struct qstr qname; @@ -992,7 +992,7 @@ } static int vfat_find(struct inode *dir,struct qstr* qname, - int find_long, int new_filename,int is_dir,struct slot_info *sinfo_out) + int find_long, int new_filename,int is_dir,struct vfat_slot_info *sinfo_out) { struct super_block *sb = dir->i_sb; struct vfat_find_info vf; @@ -1118,7 +1118,7 @@ int vfat_lookup(struct inode *dir,struct dentry *dentry) { int res; - struct slot_info sinfo; + struct vfat_slot_info sinfo; struct inode *result; PRINTK (("vfat_lookup: name=%s, len=%d\n", @@ -1162,7 +1162,7 @@ loff_t offset; struct buffer_head *bh; struct msdos_dir_entry *de; - struct slot_info sinfo; + struct vfat_slot_info sinfo; *result=0; PRINTK(("vfat_create_entry 1\n")); @@ -1388,7 +1388,7 @@ return 0; } -static int vfat_remove_entry(struct inode *dir,struct slot_info *sinfo, +static int vfat_remove_entry(struct inode *dir,struct vfat_slot_info *sinfo, struct buffer_head **bh,struct dentry* dentry, int is_dir,int nospc) { @@ -1428,7 +1428,7 @@ struct super_block *sb = dir->i_sb; int res; struct buffer_head *bh; - struct slot_info sinfo; + struct vfat_slot_info sinfo; res = vfat_find(dir,&dentry->d_name,1,0,0,&sinfo); @@ -1463,7 +1463,7 @@ struct super_block *sb = dir->i_sb; int res; struct buffer_head *bh; - struct slot_info sinfo; + struct vfat_slot_info sinfo; bh = NULL; res = vfat_find(dir,&dentry->d_name,1,0,0,&sinfo); @@ -1540,7 +1540,7 @@ struct dentry *walk; int res, is_dir, i; int locked = 0; - struct slot_info sinfo; + struct vfat_slot_info sinfo; PRINTK(("vfat_rename 1\n")); if (old_dir == new_dir && diff -ur linux-2.1.79/include/linux/msdos_fs.h linux/include/linux/msdos_fs.h --- linux-2.1.79/include/linux/msdos_fs.h Wed Jan 14 01:00:49 1998 +++ linux/include/linux/msdos_fs.h Wed Jan 14 01:03:01 1998 @@ -195,6 +195,9 @@ struct fat_cache *next; /* next cache entry */ }; +/* cache.c */ +extern int fat_get_cluster(struct inode *, int); + /* misc.c */ extern int is_binary(char conversion,char *extension); extern void lock_fat(struct super_block *sb); | |