* More on EFS bug
@ 2002-08-21 19:38 Peter Hicks
2002-08-21 20:04 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Peter Hicks @ 2002-08-21 19:38 UTC (permalink / raw)
To: alan; +Cc: cc, linux-kernel
Hi Alan
Here's a little more on the problem.
I've restarted my system, and I could mount the CD fine - modprobe efs, and
the kernel recognises the filesystem without a helping hand. I noticed I was
using ide-scsi.o for writing last night, so I modprobe'd in scsi_mod,
sr_mod, cdrom and ide-scsi, mounted the CD, and instant problem.
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.
Hope the extra detail is of use.
Best wishes,
Peter.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: More on EFS bug
2002-08-21 19:38 More on EFS bug Peter Hicks
@ 2002-08-21 20:04 ` Alan Cox
2002-08-21 22:16 ` Peter Hicks
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2002-08-21 20:04 UTC (permalink / raw)
To: peter.hicks; +Cc: cc, linux-kernel
> 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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: More on EFS bug
2002-08-21 20:04 ` Alan Cox
@ 2002-08-21 22:16 ` Peter Hicks
0 siblings, 0 replies; 3+ messages in thread
From: Peter Hicks @ 2002-08-21 22:16 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Alan Cox wrote:
>>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
>
>
>
Just to confirm the patch works like a treat. Thank you very much for
your help!
Best wishes,
Peter.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-21 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21 19:38 More on EFS bug Peter Hicks
2002-08-21 20:04 ` Alan Cox
2002-08-21 22:16 ` Peter Hicks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox