verify ATA devices

Hi all!

Do we have any API (under Win2K) to verify availability of an ATA device?
I just want to check to see whether \\.\PhysicalDriveN is ready.
Note: this drive can be unpartitioned.

Thanks
Vu


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I don’t think a symlink will be there if the hardware is not discovered yet.

----- Original Message -----
From: “Vu”
To: “NT Developers Interest List”
Sent: Wednesday, February 20, 2002 11:36 AM
Subject: [ntdev] verify ATA devices

> Hi all!
>
> Do we have any API (under Win2K) to verify availability of an ATA device?
> I just want to check to see whether \\.\PhysicalDriveN is ready.
> Note: this drive can be unpartitioned.
>
> Thanks
> Vu
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

Just send TEST_UNIT_READY SCSI command to this device. Use SPTI for this or
whatever you want…

Regards,
Anton

On 02/20/02, ““Vu” ” wrote:
> Hi all!
>
> Do we have any API (under Win2K) to verify availability of an ATA device?
> I just want to check to see whether \\.\PhysicalDriveN is ready.
> Note: this drive can be unpartitioned.
>
> Thanks
> Vu
>
> —
> You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thank you Anton!

However I have looked at this section before. There is no
obvious command like “TEST_UNIT_READY” in those IOCTL_SCSI_XXX;
Can you help me out a little further?

Thanks again
Vu

---- On Thu, 21 Feb 2002, Anton Kolomyeytsev
(xxxxx@cooldev.com) wrote:

Hi,

Just send TEST_UNIT_READY SCSI command to this device. Use
SPTI for this
or
whatever you want…

Regards,
Anton

On 02/20/02, ““Vu” ” wrote:
> > Hi all!
> >
> > Do we have any API (under Win2K) to verify availability of
an ATA
> device?
> > I just want to check to see whether \\.\PhysicalDriveN
is ready.
> > Note: this drive can be unpartitioned.
> >
> > Thanks
> > Vu
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@ureach.com
> > To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@ureach.com
> To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com
>
>

________________________________________________
Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Maxim!

If disk Managemer can see the drive then the LUN, port, and
TargetId are available. I could send
IOCTL_SCSI_GET_INQUIRY_DATA to the device. PhysicalDriveX
actually works at this stage.

Vu

---- On Thu, 21 Feb 2002, Maxim S. Shatskih
(xxxxx@storagecraft.com) wrote:

I don’t think a symlink will be there if the hardware is not
discovered
yet.

----- Original Message -----
From: “Vu”
> To: “NT Developers Interest List”
> Sent: Wednesday, February 20, 2002 11:36 AM
> Subject: [ntdev] verify ATA devices
>
>
> > Hi all!
> >
> > Do we have any API (under Win2K) to verify availability of
an ATA
> device?
> > I just want to check to see whether \\.\PhysicalDriveN
is ready.
> > Note: this drive can be unpartitioned.
> >
> > Thanks
> > Vu
> >
> > —
> > You are currently subscribed to ntdev as:
xxxxx@storagecraft.com
> > To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com
> >
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@ureach.com
> To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com
>
>

________________________________________________
Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Vu,

Right. There is no such command. This is SCSI command that you need to
send to the device. See spti.c sample (AFAIR it send such a command) in
DDK. Keep in mind the fact that if the device is not claimed(there is
nothing like
\.\PhysycalDriveX:) you’ll not be able use Partition Mgr services, TEST
UNIT READY will still work. Think about it! -)

Regards,
Anton

Thank you Anton!

However I have looked at this section before. There is no
obvious command like “TEST_UNIT_READY” in those IOCTL_SCSI_XXX;
Can you help me out a little further?

Thanks again
Vu

---- On Thu, 21 Feb 2002, Anton Kolomyeytsev
(xxxxx@cooldev.com) wrote:

> Hi,
>
> Just send TEST_UNIT_READY SCSI command to this device. Use
SPTI for this
> or
> whatever you want…
>
> Regards,
> Anton
>
> On 02/20/02, ““Vu” ” wrote:
> > > Hi all!
> > >
> > > Do we have any API (under Win2K) to verify availability of
> an ATA
> > device?
> > > I just want to check to see whether \\.\PhysicalDriveN
> is ready.
> > > Note: this drive can be unpartitioned.
> > >
> > > Thanks
> > > Vu
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@ureach.com
> > > To unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@ureach.com
> > To unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> >
> >
>
>
> ________________________________________________
> Get your own “800” number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
> —
> You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

TEST_UNIT_READY is not implemented as an IOCTL, but is implemented as a
SCSI command (CDB). So, you will need to build your own SRB and CDB and
send it to the ATA device via a passthrough.

ATAPI does implement the SCSI TEST_UNIT_READY_COMMAND, See NT 4.0 DDK
ATAPI.SYS miniport driver to see the specifics on how it is implemented
(faked).

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anton Kolomyeytsev
Sent: Friday, February 22, 2002 7:33 AM
To: NT Developers Interest List
Subject: [ntdev] Re: verify ATA devices

Hi Vu,

Right. There is no such command. This is SCSI command that you need to
send to the device. See spti.c sample (AFAIR it send such a command) in
DDK. Keep in mind the fact that if the device is not claimed(there is
nothing like
\.\PhysycalDriveX:) you’ll not be able use Partition Mgr services, TEST

UNIT READY will still work. Think about it! -)

Regards,
Anton

Thank you Anton!

However I have looked at this section before. There is no
obvious command like “TEST_UNIT_READY” in those IOCTL_SCSI_XXX;
Can you help me out a little further?

Thanks again
Vu

---- On Thu, 21 Feb 2002, Anton Kolomyeytsev
(xxxxx@cooldev.com) wrote:

> Hi,
>
> Just send TEST_UNIT_READY SCSI command to this device. Use
SPTI for this
> or
> whatever you want…
>
> Regards,
> Anton
>
> On 02/20/02, ““Vu” ” wrote:
> > > Hi all!
> > >
> > > Do we have any API (under Win2K) to verify availability of
> an ATA
> > device?
> > > I just want to check to see whether \\.\PhysicalDriveN
> is ready.
> > > Note: this drive can be unpartitioned.
> > >
> > > Thanks
> > > Vu
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@ureach.com To
> > > unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@ureach.com To
> > unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> >
> >
>
>
> ________________________________________________
> Get your own “800” number
> Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com