linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: question about scsi generic behavior
@ 2001-06-09  0:13 hiren_mehta
  2001-06-09  0:37 ` Alan Cox
  2001-06-09  0:37 ` [PANIC] aic7xxx loaded from initrd under 2.4.5 Maurice Volaski
  0 siblings, 2 replies; 4+ messages in thread
From: hiren_mehta @ 2001-06-09  0:13 UTC (permalink / raw)
  To: chamb; +Cc: linux-scsi, linux-kernel

Well, 

Hardcoding  of block size to 512 bytes for disk devices is what currently 
either the block device driver or the sd driver is doing. Because, if
I run dd to the same device using the corresponding block device (sde)
it runs fine. So, I feel that either the sg driver or the block device
driver
or sd driver needs to be fixed. 
One more thing is that, sg driver can find out from READ_CAPACITY the
current
block size on the device. So, if dd specifies bs=4096 and count=1, then
accordingly, the sg driver should set the count to 8 and bs to the bs of
the device. IMHO, untimately, the total transfer length is what matters.

Regards,
-hiren
(408)970-3062
hiren_mehta@agilent.com

> -----Original Message-----
> From: David Chambliss [mailto:chamb@almaden.ibm.com]
> Sent: Friday, June 08, 2001 4:49 PM
> To: hiren_mehta@agilent.com
> Cc: linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: question about scsi generic behavior
> 
> 
> 
> I think you need to set bpt=8 .
> 
> It is possible to set some drives to block sizes other than 
> 512 bytes, and
> hardcoding 512 is not a good idea, especially in code that 
> might last a
> while.  In a few years we might have 4096-byte blocks to let 
> the drives use
> more powerful error correcting codes.
> 
> David Chambliss
> Research Staff Member, Computer Science /Storage Systems
> IBM Research Division
> (408) 927-2243  (TL 457-2243)
> FAX (408) 927-3497
> 

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

end of thread, other threads:[~2001-06-09 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-09  0:13 question about scsi generic behavior hiren_mehta
2001-06-09  0:37 ` Alan Cox
2001-06-09  0:37 ` [PANIC] aic7xxx loaded from initrd under 2.4.5 Maurice Volaski
2001-06-09 12:36   ` Justin T. Gibbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).