Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a Hard Disk
drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive
using ioctl calls. I could manage getting information abt my hard disk
using “DeviceIoControl” call. But i couldnot figure out how i can read/
write some test data to the hard disk…
Any help will be highly appreciated…

Regards
-Ram

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with
own SPTI-like path. With this implementation you'll have the feature to
block all access to
testing device while you're busy with the test (approach widely used
with CD/DVD burning
software).

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com -- Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a Hard Disk
drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc..

All these tests involve reading and writing data to Hard disk drive
using ioctl calls. I could manage getting information abt my hard disk
using "DeviceIoControl" call. But i couldnot figure out how i can read/
write some test data to the hard disk..
Any help will be highly appreciated...

Regards
-Ram

Questions? First check the IFS FAQ at

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com

One low level way of doing this would be to program the ATA registers of
the hard disk controller which takes care of writing into the disk...

Shiva P

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 4:05 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a Hard Disk
drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc..

All these tests involve reading and writing data to Hard disk drive
using ioctl calls. I could manage getting information abt my hard disk
using "DeviceIoControl" call. But i couldnot figure out how i can read/
write some test data to the hard disk..
Any help will be highly appreciated...

Regards
-Ram

Questions? First check the IFS FAQ at

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com

Wow! FC and Parallel SCSI disks and users would be happy with this
"way".

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com -- Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Wednesday, August 18, 2004 1:41 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

One low level way of doing this would be to program the ATA registers of
the hard disk controller which takes care of writing into the disk...

Shiva P

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 4:05 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a Hard Disk
drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc..

All these tests involve reading and writing data to Hard disk drive
using ioctl calls. I could manage getting information abt my hard disk
using "DeviceIoControl" call. But i couldnot figure out how i can read/
write some test data to the hard disk..
Any help will be highly appreciated...

Regards
-Ram

Questions? First check the IFS FAQ at

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com ---

Questions? First check the IFS FAQ at

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com

????????? Note: Nero does not use any kernel modules. It talks to the burner via IOCTL_SCSI_PASS_THROUGH_DIRECT.

On the other hand, IMAPI uses a filter driver just on top of the storage port and below CdRom.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com

----- Original Message -----
From: Anton A. Kolomyeytsev (CoolDev.Com)
To: Windows File Systems Devs Interest List
Sent: Wednesday, August 18, 2004 2:36 PM
Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using filter driver with
own SPTI-like path. With this implementation you'll have the feature to block all access to
testing device while you're busy with the test (approach widely used with CD/DVD burning
software).

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com -- Toolkits for Network and Storage Kernel Software Developers
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a Hard Disk drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc..

All these tests involve reading and writing data to Hard disk drive using ioctl calls. I could manage getting information abt my hard disk using "DeviceIoControl" call. But i couldnot figure out how i can read/ write some test data to the hard disk..
Any help will be highly appreciated...

Regards
-Ram

Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to xxxxx@lists.osr.com

Message Doing this in Windows is asking for trouble, you will not be able to synchronize your work with the ATA driver's work.

The original task can be easily solved from user mode via ReadFile/WriteFile/DeviceIoControl.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com

----- Original Message -----
From: xxxxx@wipro.com
To: Windows File Systems Devs Interest List
Sent: Wednesday, August 18, 2004 2:41 PM
Subject: RE: [ntfsd] Read /Write Hard Diak

One low level way of doing this would be to program the ATA registers of the hard disk controller which takes care of writing into the disk...

Shiva P

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Wednesday, August 18, 2004 4:05 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a Hard Disk drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc..

All these tests involve reading and writing data to Hard disk drive using ioctl calls. I could manage getting information abt my hard disk using "DeviceIoControl" call. But i couldnot figure out how i can read/ write some test data to the hard disk..
Any help will be highly appreciated...

Regards
-Ram

Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to xxxxx@lists.osr.com ---
Questions? First check the IFS FAQ at The NT Insider:Windows NT Virtual Memory (Part I)

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to xxxxx@lists.osr.com

Wrong answer!

Nero uses ASPI to talk to the hardware. So it’s completely up to ASPI
layer how to proceed the command.
Nero’s own ASPI layer is really ASPI <-> SPTI wrapper. However if you’ll
have f.e. Adaptec ASPI
layer installed you’ll have kernel driver with hand-crafted IRP_MJ_SCSI
IRPs (No IOCTL_SCSI_PASS_THROUGH_DIRECT!)
finally (I guess this is b/s IOCTL_SCSI_PASS_THROUGH_XXX does not allow
asynchronous calls and ASPI
have to support async stuff).

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, August 18, 2004 6:11 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Read /Write Hard Diak

Note: Nero does not use any kernel modules. It talks to the burner
via IOCTL_SCSI_PASS_THROUGH_DIRECT.

On the other hand, IMAPI uses a filter driver just on top of the
storage port and below CdRom.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Anton A. mailto:xxxxx Kolomyeytsev (CoolDev.Com)
To: Windows File Systems Devs Interest mailto:xxxxx
List
Sent: Wednesday, August 18, 2004 2:36 PM
Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with
own SPTI-like path. With this implementation you’ll have the feature to
block all access to
testing device while you’re busy with the test (approach widely used
with CD/DVD burning
software).

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a Hard Disk
drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive
using ioctl calls. I could manage getting information abt my hard disk
using “DeviceIoControl” call. But i couldnot figure out how i can read/
write some test data to the hard disk…
Any help will be highly appreciated…

Regards
-Ram

Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx>

Too complex; just open the Physical device and issue ReadFile and WriteFile
requests; yes, it is that easy.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton A.
Kolomyeytsev (CoolDev.Com)
Sent: Wednesday, August 18, 2004 3:36 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with

own SPTI-like path. With this implementation you’ll have the feature to
block all access to

testing device while you’re busy with the test (approach widely used with
CD/DVD burning

software).

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,

I am currently developing a project which involves testing a Hard Disk drive
with tests like,

Random Read,

Random Write,

Sequential Read,

Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive using
ioctl calls. I could manage getting information abt my hard disk using
“DeviceIoControl” call. But i couldnot figure out how i can read/ write some
test data to the hard disk…

Any help will be highly appreciated…

Regards

-Ram


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

__________ NOD32 1.847 (20040818) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com

Oh yeah, now we this is much better than Anton’s suggestion; NOT.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Wednesday, August 18, 2004 3:41 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

One low level way of doing this would be to program the ATA registers of the
hard disk controller which takes care of writing into the disk…

Shiva P

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Wednesday, August 18, 2004 4:05 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,

I am currently developing a project which involves testing a Hard Disk drive
with tests like,

Random Read,

Random Write,

Sequential Read,

Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive using
ioctl calls. I could manage getting information abt my hard disk using
“DeviceIoControl” call. But i couldnot figure out how i can read/ write some
test data to the hard disk…

Any help will be highly appreciated…

Regards

-Ram


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

__________ NOD32 1.847 (20040818) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com

You need to explain this more. If Nero calls ASPI, when does Nero call the
kernel directly/


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton A.
Kolomyeytsev (CoolDev.Com)
Sent: Wednesday, August 18, 2004 12:13 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Wrong answer!

Nero uses ASPI to talk to the hardware. So it’s completely up to ASPI layer
how to proceed the command.

Nero’s own ASPI layer is really ASPI <-> SPTI wrapper. However if you’ll
have f.e. Adaptec ASPI

layer installed you’ll have kernel driver with hand-crafted IRP_MJ_SCSI IRPs
(No IOCTL_SCSI_PASS_THROUGH_DIRECT!)

finally (I guess this is b/s IOCTL_SCSI_PASS_THROUGH_XXX does not allow
asynchronous calls and ASPI

have to support async stuff).

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, August 18, 2004 6:11 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Read /Write Hard Diak

Note: Nero does not use any kernel modules. It talks to the burner via
IOCTL_SCSI_PASS_THROUGH_DIRECT.

On the other hand, IMAPI uses a filter driver just on top of the storage
port and below CdRom.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----

From: Anton A. Kolomyeytsev mailto:xxxxx (CoolDev.Com)

To: Windows File mailto:xxxxx Systems Devs Interest List

Sent: Wednesday, August 18, 2004 2:36 PM

Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with

own SPTI-like path. With this implementation you’ll have the feature to
block all access to

testing device while you’re busy with the test (approach widely used with
CD/DVD burning

software).

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,

I am currently developing a project which involves testing a Hard Disk drive
with tests like,

Random Read,

Random Write,

Sequential Read,

Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive using
ioctl calls. I could manage getting information abt my hard disk using
“DeviceIoControl” call. But i couldnot figure out how i can read/ write some
test data to the hard disk…

Any help will be highly appreciated…

Regards

-Ram


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

NOD32 1.847 (20040818) Information

This message was checked by NOD32 antivirus system.
http://www.nod32.com</mailto:xxxxx></mailto:xxxxx>

???>Nero uses ASPI to talk to the hardware.

Maybe. Nero has no kmode drivers anyway. Maybe they have the user-mode DLL
which is ASPI over SPTI, but no kernel modules.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Not “maybe” but “exactly”. You can just check wnaspi32.dll module they
do copy if the system
has no global ASPI layer during their package installation. They don’t
do this on Windows 9x machines
relying on system default ASPI layer (I guess this is the reason of them
sticking with ASPI – having
the code calling the same pathes for CD/DVD I/O on the different
platforms – we use the same model
if you care).

In any case I cannot understand what you’re trying to prove? That in
some confugurations (OK, in MOST under NT)
Nero’s own software calls end with SPTI IOCTL? Very good! So what? There
are tons of ways to do the
same thing. Some more universal, some not. I need to ask again – so
what? :slight_smile:

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Thursday, August 19, 2004 12:48 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Read /Write Hard Diak

???>Nero uses ASPI to talk to the hardware.

Maybe. Nero has no kmode drivers anyway. Maybe they have the user-mode
DLL which is ASPI over SPTI, but no kernel modules.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@cooldev.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Yup. That simple. But does not work for unclaimed devices.

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
Sent: Thursday, August 19, 2004 12:26 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Too complex; just open the Physical device and issue ReadFile and
WriteFile requests; yes, it is that easy.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton A.
Kolomyeytsev (CoolDev.Com)
Sent: Wednesday, August 18, 2004 3:36 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with

own SPTI-like path. With this implementation you’ll have the feature to
block all access to

testing device while you’re busy with the test (approach widely used
with CD/DVD burning

software).

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,

I am currently developing a project which involves testing a Hard Disk
drive with tests like,

Random Read,

Random Write,

Sequential Read,

Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive
using ioctl calls. I could manage getting information abt my hard disk
using “DeviceIoControl” call. But i couldnot figure out how i can read/
write some test data to the hard disk…

Any help will be highly appreciated…

Regards

-Ram


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

__________ NOD32 1.847 (20040818) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Yes, but it is a very rare situation where the user will be reading form a
disk that is not claimed. In fact, he already stated he knows how to issue
DEVIOCTLs, so I think we can assume the device is claimed.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton A.
Kolomyeytsev (CoolDev.Com)
Sent: Wednesday, August 18, 2004 3:50 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Yup. That simple. But does not work for unclaimed devices.

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
Sent: Thursday, August 19, 2004 12:26 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Too complex; just open the Physical device and issue ReadFile and WriteFile
requests; yes, it is that easy.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton A.
Kolomyeytsev (CoolDev.Com)
Sent: Wednesday, August 18, 2004 3:36 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with

own SPTI-like path. With this implementation you’ll have the feature to
block all access to

testing device while you’re busy with the test (approach widely used with
CD/DVD burning

software).

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,

I am currently developing a project which involves testing a Hard Disk drive
with tests like,

Random Read,

Random Write,

Sequential Read,

Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive using
ioctl calls. I could manage getting information abt my hard disk using
“DeviceIoControl” call. But i couldnot figure out how i can read/ write some
test data to the hard disk…

Any help will be highly appreciated…

Regards

-Ram


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

__________ NOD32 1.847 (20040818) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

__________ NOD32 1.847 (20040818) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com

“Rare” does not mean “never”, right? :slight_smile:

Actually I would finally say we’re both right. But only together :slight_smile: B/s
both ways (SPTI or
whatever way to talk with CDBs) and Read/WriteFile should be used IN THE
SAME APP.
B/s SPTI (or whatever) does not work with software RAIDs (I *HATE* f.e.
HDTach for it’s
unable to test software RAID5) and Read/WriteFile way does not work for
unclaimed device
(does not matter how often this can happen - I was not not lazy to check
“uninitialized” disk –
it does have RAW file system on it, but I was afraid to “sign” Linux
RAID volume under XP…).

So now the guy can pick up what he really needs. Except totally crazy
way (ATA commands
ignoring ATA driver etc) we’ve listed and described all of them… At
least I do not know other
ones :slight_smile:

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
Sent: Thursday, August 19, 2004 2:26 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Yes, but it is a very rare situation where the user will be reading form
a disk that is not claimed. In fact, he already stated he knows how to
issue DEVIOCTLs, so I think we can assume the device is claimed.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton A.
Kolomyeytsev (CoolDev.Com)
Sent: Wednesday, August 18, 2004 3:50 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Yup. That simple. But does not work for unclaimed devices.

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
Sent: Thursday, August 19, 2004 12:26 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Too complex; just open the Physical device and issue ReadFile and
WriteFile requests; yes, it is that easy.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton A.
Kolomyeytsev (CoolDev.Com)
Sent: Wednesday, August 18, 2004 3:36 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with

own SPTI-like path. With this implementation you’ll have the feature to
block all access to

testing device while you’re busy with the test (approach widely used
with CD/DVD burning

software).

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,

I am currently developing a project which involves testing a Hard Disk
drive with tests like,

Random Read,

Random Write,

Sequential Read,

Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive
using ioctl calls. I could manage getting information abt my hard disk
using “DeviceIoControl” call. But i couldnot figure out how i can read/
write some test data to the hard disk…

Any help will be highly appreciated…

Regards

-Ram


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

__________ NOD32 1.847 (20040818) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

__________ NOD32 1.847 (20040818) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

I tried ReadFile/WriteFile/DeviceIoControl functions and did suceed in
reading couple of sectors from Hard Disk. Now i need to write an algo
for sequential/ random read and write.
Thanx for all the help.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Wednesday, August 18, 2004 8:44 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Read /Write Hard Diak

Doing this in Windows is asking for trouble, you will not be able to
synchronize your work with the ATA driver’s work.

The original task can be easily solved from user mode via
ReadFile/WriteFile/DeviceIoControl.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: xxxxx@wipro.com
To: Windows File Systems Devs Interest List
mailto:xxxxx
Sent: Wednesday, August 18, 2004 2:41 PM
Subject: RE: [ntfsd] Read /Write Hard Diak

One low level way of doing this would be to program the ATA
registers of the hard disk controller which takes care of writing into
the disk…

Shiva P

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 4:05 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves testing a
Hard Disk drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc…

All these tests involve reading and writing data to Hard disk
drive using ioctl calls. I could manage getting information abt my hard
disk using “DeviceIoControl” call. But i couldnot figure out how i can
read/ write some test data to the hard disk…
Any help will be highly appreciated…

Regards
-Ram

Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx>

If somebody can give me ideas, what is the difference between a Read
test and a Seek test. Are we not seeking a new location each time we
read??
Also i would be glad if someone can tell me the definitions for
Sequential Read and Random Read.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
Sent: Wednesday, August 18, 2004 8:41 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Read /Write Hard Diak

Note: Nero does not use any kernel modules. It talks to the burner
via IOCTL_SCSI_PASS_THROUGH_DIRECT.

On the other hand, IMAPI uses a filter driver just on top of the
storage port and below CdRom.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Anton A. Kolomyeytsev (CoolDev.Com)
mailto:xxxxx
To: Windows File Systems Devs Interest List
mailto:xxxxx
Sent: Wednesday, August 18, 2004 2:36 PM
Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would
be using filter driver with
own SPTI-like path. With this implementation you’ll have the
feature to block all access to
testing device while you’re busy with the test (approach widely
used with CD/DVD burning
software).

Regards,
Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel
Software Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram
Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,
I am currently developing a project which involves
testing a Hard Disk drive with tests like,
Random Read,
Random Write,
Sequential Read,
Sequential Write etc…

All these tests involve reading and writing data to Hard
disk drive using ioctl calls. I could manage getting information abt my
hard disk using “DeviceIoControl” call. But i couldnot figure out how i
can read/ write some test data to the hard disk…
Any help will be highly appreciated…

Regards
-Ram

Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown
lmsubst tag argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx>

Yes, you are correct in that seeking is inherent in reading.

I am not sure how to explain random vs. sequential reading in any more
detail that the names themselves suggest.

Jamey


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Thursday, August 19, 2004 2:33 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Read /Write Hard Diak

If somebody can give me ideas, what is the difference between a Read test
and a Seek test. Are we not seeking a new location each time we read??

Also i would be glad if someone can tell me the definitions for Sequential
Read and Random Read.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, August 18, 2004 8:41 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Read /Write Hard Diak

Note: Nero does not use any kernel modules. It talks to the burner via
IOCTL_SCSI_PASS_THROUGH_DIRECT.

On the other hand, IMAPI uses a filter driver just on top of the storage
port and below CdRom.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----

From: Anton A. Kolomyeytsev mailto:xxxxx (CoolDev.Com)

To: Windows File mailto:xxxxx Systems Devs Interest List

Sent: Wednesday, August 18, 2004 2:36 PM

Subject: RE: [ntfsd] Read /Write Hard Diak

Use either SPTI with hand-crafted CDBs or better approach would be using
filter driver with

own SPTI-like path. With this implementation you’ll have the feature to
block all access to

testing device while you’re busy with the test (approach widely used with
CD/DVD burning

software).

Regards,

Anton A. Kolomyeytsev

RocketDivision.Com – Toolkits for Network and Storage Kernel Software
Developers

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of M P Sriram Chandra
Sent: Wednesday, August 18, 2004 1:35 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Read /Write Hard Diak

Hi,

I am currently developing a project which involves testing a Hard Disk drive
with tests like,

Random Read,

Random Write,

Sequential Read,

Sequential Write etc…

All these tests involve reading and writing data to Hard disk drive using
ioctl calls. I could manage getting information abt my hard disk using
“DeviceIoControl” call. But i couldnot figure out how i can read/ write some
test data to the hard disk…

Any help will be highly appreciated…

Regards

-Ram


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

NOD32 1.847 (20040818) Information

This message was checked by NOD32 antivirus system.
http://www.nod32.com</mailto:xxxxx></mailto:xxxxx>