Re: Scsi Driver & Hanging on Writing inode tables for large partitions

Steve Brueggeman (xioborg@yahoo.com)
Wed, 15 Aug 2001 10:15:37 -0500


First off, this should probably be posted on
linux-scsi@vger.kernel.org instead of here.

Well, I hate to be obvious, but since you mention it's size related,
the first thing to suspect is that your driver is not shifting the
SECTOR bits correctly.

Notably, 0x5FFFF sectors * 0x200 bytes/sector ~= 201MB.

Enable scsi logging in the kernel, and turn it on with
echo "scsi log all" >/proc/scsi

and exercise the disk with something simple like
dd if=/dev/sda of=/dev/null bs=512 count=1000 skip=393200

(Note, 393200 == 0x5FFF0 )

and look at the kernel log to see what CDB's the SCSI middle layers
are pushing to your driver, and see what CDB's your driver is pushing
to the hardware.

Steve Brueggeman

On Thu, 12 Jul 2001 18:00:37 -0700, you wrote:

>Hi,
>
>I'm very new at this, so here goes:
>
>I'm trying to write a scsi driver, and everything (device detection,
>reading/writing to partition tables) works fine, until I try to mkfs any
>partition larger than 200 megs. When it's over 200 megs, it would hang on
>writing to the inode tables for ~20 seconds, then spit out many i/o errors.
>Is there a reason why mkfs would work for partitions <200 megs and not for
>partitions larger than that?
>
>Kernel: 2.4.2-2
>mke2fs: 1.19
>CPU: Pentium Pro 200mhz
>Memory: 48mb physical, 256mb swap
>
>I would really appreciate any help, and please cc: any responses to this to
>this email address because I'm not on the mailing list.
>
>Thanks, Alan
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>-
>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/

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
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/