lkml.org 
[lkml]   [2002]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: More on EFS bug
From
Date
> The problem isn't the freshly burnt CD, as I tried with the original SGI CD,
> which shows the same problem using ide-scsi, but is fine when I access things
> natively over IDE.

That confirms my suspicion. Patch below. The bug cases should now error
politely


--- fs/efs/super.c~ 2002-08-21 20:40:27.000000000 +0100
+++ fs/efs/super.c 2002-08-21 20:40:27.000000000 +0100
@@ -141,7 +141,13 @@
s->s_magic = EFS_SUPER_MAGIC;
s->s_blocksize = EFS_BLOCKSIZE;
s->s_blocksize_bits = EFS_BLOCKSIZE_BITS;
- set_blocksize(dev, EFS_BLOCKSIZE);
+
+ if( set_blocksize(dev, EFS_BLOCKSIZE) < 0)
+ {
+ printk(KERN_ERR "EFS: device does not support %d byte blocks\n",
+ EFS_BLOCKSIZE);
+ goto out_no_fs_ul;
+ }

/* read the vh (volume header) block */
bh = sb_bread(s, 0);
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.045 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site