Article View: borland.public.cppbuilder.nativeapi
Article #2049Re: HDD failure detection (raid1 configuration)
From: Paul
Date: Wed, 25 Apr 2007 10:56
Date: Wed, 25 Apr 2007 10:56
43 lines
2175 bytes
2175 bytes
Hello Bob,
I test it like this code
for(i;i < 10;i++)
{
...
drive.sprintf ( "\\\\.\\PhysicalDrive%d", i);
hPhysicalDriveIOCTL = CreateFile (drive,
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE , NULL,
OPEN_EXISTING, 0, NULL);
...
}
I don't have contact the manufacturer until now,
I'm still in hope anybody know the right way for my problem.
But I will write a mail to the manufacturer, is a good idea.
We will see what is the faster way.
Thanks
"Bob Gonder" <notbg@notmindspring.invalid> schrieb im Newsbeitrag
news:thoq235n8667tqia593p1hu2ik7a18o6s4@4ax.com...
> Paul wrote:
>
>>I have problems with DeviceIoControl(). I don't know how to get a handle
>>for
>>the second disk. Because the System see the 2 disks as one.
>
> Did you use \\.\PHYSICALDRIVE0 \\.\PHYSICALDRIVE1?
>
>> I think the
>>problem is the Raid Controller?
>
> Could be. Have you contacted the manufacturer yet?
>
>
Technical Details
Message-ID:
<462f33e9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46289607$1@newsgroups.borland.com> <jljh235brppc4hqbp5rlf17kuog3ome0ci@4ax.com> <462c64e2$1@newsgroups.borland.com> <thoq235n8667tqia593p1hu2ik7a18o6s4@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9d50cca55661c4a2 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Paul" <ppik34@web.de> From: "Paul" <ppik34@web.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <46289607$1@newsgroups.borland.com> <jljh235brppc4hqbp5rlf17kuog3ome0ci@4ax.com> <462c64e2$1@newsgroups.borland.com> <thoq235n8667tqia593p1hu2ik7a18o6s4@4ax.com> Subject: Re: HDD failure detection (raid1 configuration) Date: Wed, 25 Apr 2007 12:56:39 +0200 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 87.139.121.224 Message-ID: <462f33e9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177498601 87.139.121.224 (25 Apr 2007 03:56:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail