Hi all,
is it possible to get the “Sector Address” where a read or write to a USB
mass storage device occurs from
user space ?
The device supports SPTI, the SCSI CDB has a field LBA, but i have not found
a way to access to this field (neither Kernel or User)…
Cheers
And why CDB is inaccessible? for me, it is easy to access.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
“Ryan Norwood” wrote in message news:xxxxx@ntfsd…
Hi all,
is it possible to get the “Sector Address” where a read or write to a USB
mass storage device occurs from
user space ?
The device supports SPTI, the SCSI CDB has a field LBA, but i have not found
a way to access to this field (neither Kernel or User)…
Cheers
Hi Maxim ,
I have not found any function that can access the LBA field in the CDB.
I primarily looked at DeviceIoControl(). If you have a hint/pointer for me
to look at which functions,
I would appreciate it.
Ryan
On Fri, Feb 11, 2011 at 4:37 PM, Maxim S. Shatskih
wrote:
> And why CDB is inaccessible? for me, it is easy to access.
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> “Ryan Norwood” wrote in message news:xxxxx@ntfsd.
> …
> Hi all,
>
> is it possible to get the “Sector Address” where a read or write to a USB
> mass storage device occurs from
> user space ?
> The device supports SPTI, the SCSI CDB has a field LBA, but i have not
> found
> a way to access to this field (neither Kernel or User)…
>
> Cheers
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
CDB is in the SRB structure, the LBA is just some bytes in it (interpreted as big-engian as everything else in SCSI).
SRB is associated with the IRP.
So, write a filter driver and look at CDBs.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
“Ryan Norwood” wrote in message news:xxxxx@ntfsd…
Hi Maxim ,
I have not found any function that can access the LBA field in the CDB.
I primarily looked at DeviceIoControl(). If you have a hint/pointer for me to look at which functions,
I would appreciate it.
Ryan
On Fri, Feb 11, 2011 at 4:37 PM, Maxim S. Shatskih wrote:
And why CDB is inaccessible? for me, it is easy to access.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
“Ryan Norwood” wrote in message news:xxxxx@ntfsd…
Hi all,
is it possible to get the “Sector Address” where a read or write to a USB
mass storage device occurs from
user space ?
The device supports SPTI, the SCSI CDB has a field LBA, but i have not found
a way to access to this field (neither Kernel or User)…
Cheers
—
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer