Re: question about scsi generic behavior

2001-06-08 Thread Alan Cox
> 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'm using 2048 byte block sized scsi media just fine. I've not tried using sg on the same device - To unsubscribe from this list: send the line "un

RE: question about scsi generic behavior

2001-06-08 Thread hiren_mehta
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

Re: question about scsi generic behavior

2001-06-08 Thread David Chambliss
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. Da

question about scsi generic behavior

2001-06-08 Thread hiren_mehta
Hi List, I am trying to use sg_dd which goes through the scsi generic driver. This is how use it. sg_dd if=/dev/zero of=/dev/sg5 bs=4096 count=1 And sg5 is actually a disk. The question that I have is, does the scsi generic driver have a knowledge about what kind of device it is dealing with