public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: MO-Drive under 2.4.7 usinf vfat
@ 2001-07-22 14:49 Douglas Gilbert
  2001-07-22 17:47 ` OGAWA Hirofumi
  2001-07-24  8:33 ` Jens Axboe
  0 siblings, 2 replies; 11+ messages in thread
From: Douglas Gilbert @ 2001-07-22 14:49 UTC (permalink / raw)
  To: OGAWA Hirofumi; +Cc: linux-kernel, Jens Axboe

OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> wrote:
> Is the capacity of your MO disk more than 640M?

No, the capacity is 635600896 bytes.

$ sg_readcap /dev/sg1
Read Capacity results:
   Last block address = 310351 (0x4bc4f), Number of blocks = 310352
   Block size = 2048 bytes

This is from my log:
 Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 0
 SCSI device sdb: 310352 2048-byte hdwr sectors (636 MB)

$ cat /proc/scsi/scsi 
Attached devices: 
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: IBM      Model: DNES-309170W     Rev: SA30
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: FUJITSU  Model: M25-MCC3064AP    Rev: 0023
  Type:   Optical Device                   ANSI SCSI revision: 02

On my box the MO drive is /dev/sdb or /dev/sg1 .

Executing 'mount -t vfat /dev/sdb /mnt/extra -o debug'
put this in my log:
 MSDOS: Hardware sector size is 2048
 [MS-DOS FS Rel. 12,FAT 16,check=n,conv=b,uid=0,gid=0,umask=022]
 [me=0xf8,cs=32,#f=2,fs=1,fl=152,ds=305,de=512,data=
   337,se=0,ts=1241408,ls=512,rc=0,fc=4294967295]
 Transaction block size = 2048

> Perhaps, your MO disk will have the `ls' of a value smaller 
> than 2048.
Yes, ls=512 .

> Logical sector size smaller than device sector size cannot
> be handled with FAT of 2.4 series.

Great. When will that be fixed (Jens?) ? If not, can we get 
a more civilized response than the current oops?

Doug Gilbert


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: MO-Drive under 2.4.7 usinf vfat
@ 2001-07-21 16:15 Douglas Gilbert
  0 siblings, 0 replies; 11+ messages in thread
From: Douglas Gilbert @ 2001-07-21 16:15 UTC (permalink / raw)
  To: linux-kernel, Detlev Offenbach

Detlev Offenbach <detlev@offenbach.fs.uunet.de> wrote:
> I have just tested the new 2.4.7 kernel to see, whether 
> it now works with a  MO-Drive using the vfat filesystem. 
> Unfortunately it still doesn't. Mounting a disk and 
> writing to it is ok. However, when I try to read a file 
> off the disk, the program crashes with a Segmentation 
> fault and I get a oops in the messages file (see 
> attachment). I tried ksymoops on this file, but either I 
> did something wrong or it couldn't analyse it.
> 
> I hope, this issue will be fixed soon cause I would 
> like to switch over to the 2.4 kernel series without 
> scratching my set of MO-disks.

Detlev,
I can confirm lk 2.4.6 is broken w.r.t. 2048 byte sectored
MO disks with vfat file systems. I have a FUJITSU  
Model: M25-MCC3064AP here (IDE device that uses the ide-scsi
driver) and it works just fine with dd (and through the sg 
interface). So I'm quite confident the failure is not being 
caused by the SCSI subsystem.

I cannot see any code changes in the sd driver between
lk 2.2 and lk 2.4 that impact this problem (as some
have suggested). When it works in lk 2.2 it follows
existing code pathes in the sd driver that exist and
work in the sd driver found in lk 2.4 .

Now the block subsystem might be expecting the sd driver
to play the same tricks as the sr driver in the way it
handles 2048 byte sectors. If so, that logic has never
been added to the sd driver. From memory there was a
thread on this issue that decided there were better ways
to address the block mismatch problem.

Anyway, I'll keep poking around.

Doug Gilbert


^ permalink raw reply	[flat|nested] 11+ messages in thread
* MO-Drive under 2.4.7 usinf vfat
@ 2001-07-21 13:26 Detlev Offenbach
  2001-07-21 16:17 ` Steven Walter
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Detlev Offenbach @ 2001-07-21 13:26 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

Hi all,

I have just tested the new 2.4.7 kernel to see, whether it now works with a 
MO-Drive using the vfat filesystem. Unfortunately it still doesn't. Mounting 
a disk and writing to it is ok. However, when I try to read a file off the 
disk, the program crashes with a Segmentation fault and I get a oops in the 
messages file (see attachment). I tried ksymoops on this file, but either I 
did something wrong or it couldn't analyse it.

I hope, this issue will be fixed soon cause I would like to switch over to 
the 2.4 kernel series without scratching my set of MO-disks.

Regards
Detlev

Btw, please answer by email as well because I think I got removed from the 
mailing list somehow (or is it that quiet?).
-- 
Detlev Offenbach
detlev@offenbach.fs.uunet.de

[-- Attachment #2: oops.txt --]
[-- Type: text/plain, Size: 1290 bytes --]

Jul 21 14:38:21 majestix kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000000
Jul 21 14:38:21 majestix kernel:  printing eip:
Jul 21 14:38:21 majestix kernel: 00000000
Jul 21 14:38:21 majestix kernel: *pde = 00000000
Jul 21 14:38:21 majestix kernel: Oops: 0000
Jul 21 14:38:21 majestix kernel: CPU:    0
Jul 21 14:38:21 majestix kernel: EIP:    0010:[<00000000>]
Jul 21 14:38:21 majestix kernel: EFLAGS: 00010282
Jul 21 14:38:21 majestix kernel: eax: 00000000   ebx: d729dcc0   ecx: 00004000   edx: d729dce0
Jul 21 14:38:21 majestix kernel: esi: 40017000   edi: 00000000   ebp: 00004000   esp: d727ff80
Jul 21 14:38:21 majestix kernel: ds: 0018   es: 0018   ss: 0018
Jul 21 14:38:21 majestix kernel: Process more (pid: 1191, stackpage=d727f000)
Jul 21 14:38:21 majestix kernel: Stack: e2bad8fd d729dcc0 40017000 00004000 d729dce0 d729dcc0 ffffffea c012e156 
Jul 21 14:38:21 majestix kernel:        d729dcc0 40017000 00004000 d729dce0 d727e000 08050b68 08050b68 bffff49c 
Jul 21 14:38:21 majestix kernel:        c0106c2b 00000003 40017000 00004000 08050b68 08050b68 bffff49c 00000003 
Jul 21 14:38:21 majestix kernel: Call Trace: [sys_read+150/208] [system_call+51/56] 
Jul 21 14:38:21 majestix kernel: 
Jul 21 14:38:21 majestix kernel: Code:  Bad EIP value.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-07-27 15:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-22 14:49 MO-Drive under 2.4.7 usinf vfat Douglas Gilbert
2001-07-22 17:47 ` OGAWA Hirofumi
2001-07-24  8:33 ` Jens Axboe
2001-07-24 17:00   ` Alan Cox
2001-07-24 17:50     ` OGAWA Hirofumi
2001-07-25  6:35     ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2001-07-21 16:15 Douglas Gilbert
2001-07-21 13:26 Detlev Offenbach
2001-07-21 16:17 ` Steven Walter
2001-07-22 14:07 ` OGAWA Hirofumi
2001-07-23 13:38 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox