ReadFile() fails on hardware RAID disk.How to detect that disk is
hi
I have two questions regarding hardware RAID disk . I created it as hardware
mirror disk. (I plugged it on marvel RAID controller)
1st question is that i want to read sectors from RAID disk, if i allocate
memory in a function and that memory passes through more than 3 function
calls to finally pass through ::ReadFile(), it gets failed with error code
87, i.e. INVALID_PARAMETER. If there functions calls are less than 3, the
fuction read data and is successfull.
For example,
Function1---> Function2---> Function3--->Function4--->Function5---> ReadFile()
if i allocated memory in Function4 and it is passed to Function5 and
Function5 then calls ReadFile on that buffer, it is complete successfully.
But if i allocate in that buffer in Function1 and that memory goes through
Function2,Function3,Function4,Function5, and then calls Readfile that
function fails. Note that these functions are in different classes.
Can anyone have idea????????
2nd question is that how can i know the disk which is controlled RAID
controller or hardware RAID. Simply is there any method to detect whether it
simple disk or hardware RAID disk.
Please any kind of help will be really appriciated
date: Thu, 6 Dec 2007 20:56:00 -0800
author: Zeeshan