mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Scsi Driver & Hanging on Writing inode tables for large partitions
@ 2001-07-13  1:00 Alan Li
  2001-08-15 15:15 ` Steve Brueggeman
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Li @ 2001-07-13  1:00 UTC (permalink / raw)
  To: linux-kernel

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


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

* Re: Scsi Driver & Hanging on Writing inode tables for large partitions
  2001-07-13  1:00 Scsi Driver & Hanging on Writing inode tables for large partitions Alan Li
@ 2001-08-15 15:15 ` Steve Brueggeman
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Brueggeman @ 2001-08-15 15:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: Alan Li

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


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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-13  1:00 Scsi Driver & Hanging on Writing inode tables for large partitions Alan Li
2001-08-15 15:15 ` Steve Brueggeman

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

all inboxes | Powered by JetHome®