Re: amiga affs support broken in 2.4.x kernels??

From: Roman Zippel (zippel@linux-m68k.org)
Date: Tue Apr 17 2001 - 13:04:17 EST


Hi,

Mark Hounschell wrote:

> Sorry I didn't get back to you yesterday afternoon. I was out of town.
> Attached is the output from dmesg and the relavent info from
> /var/log/messages.

Could you try the attached patch? I forgot to initialize a variable
correctly.
(I also put a new version at
http://www.xs4all.nl/~zippel/affs.010417.tar.gz)

> I beleive the filesystem is ffs
> but not exactly sure. How do I tell?

It's printed if you mount with '-overbose', but it shouldn't be needed
anymore. :)

bye, Roman

--- fs/affs/bitmap.c.org Sat Apr 7 04:23:41 2001
+++ fs/affs/bitmap.c Tue Apr 17 19:49:18 2001
@@ -124,7 +124,7 @@
 err_bh_read:
         affs_error(sb,"affs_free_block","Cannot read bitmap block %u", bm->bm_key);
         AFFS_SB->s_bmap_bh = NULL;
- AFFS_SB->s_last_bmap = 0;
+ AFFS_SB->s_last_bmap = ~0;
         up(&AFFS_SB->s_bmlock);
         return;
 
@@ -262,7 +262,7 @@
 err_bh_read:
         affs_error(sb,"affs_read_block","Cannot read bitmap block %u", bm->bm_key);
         AFFS_SB->s_bmap_bh = NULL;
- AFFS_SB->s_last_bmap = 0;
+ AFFS_SB->s_last_bmap = ~0;
 err_full:
         pr_debug("failed\n");
         up(&AFFS_SB->s_bmlock);
@@ -288,6 +288,8 @@
                 return 0;
         }
 
+ AFFS_SB->s_last_bmap = ~0;
+ AFFS_SB->s_bmap_bh = NULL;
         AFFS_SB->s_bmap_bits = sb->s_blocksize * 8 - 32;
         AFFS_SB->s_bmap_count = (AFFS_SB->s_partition_size - AFFS_SB->s_reserved +
                                  AFFS_SB->s_bmap_bits - 1) / AFFS_SB->s_bmap_bits;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:23 EST