lkml.org 
[lkml]   [1999]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectQuestion about sg_utils


Hi all,
I'm studing how and 'trying to write' a scsi driver.
To test driver's performance now
I'm working with sg_utils < of Gilbert >.
When I use sg_dd512 all work fine!
But (there's always a but)
when I use sg_dd2048 (on the same device with the same driver)
I see that it writes and correctly reads only the first 2048 byte
after that, it doesn't behave as I think:
it writes and reads rubbish!

Questions:
Is it correct using sg_dd2048 on devices with sector size = 512?

I have seen that the difference between sg_dd512 and sg_dd2048 is
in the scsi cmnd (in the 'transfert lenght' field),
where sg_ddXXXX writes the number of blocks.
Who have to handle this value?

Thanks,
Sandro



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.060 / U:1.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site