[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem in detecting RAID device!!
From: |
Veerapuram Varadhan |
Subject: |
Re: Problem in detecting RAID device!! |
Date: |
Thu, 26 Dec 2002 17:49:53 +0530 (IST) |
> On Thu, Dec 26, 2002 at 04:54:27PM +0530, Veerapuram Varadhan wrote:
>> > The relevant function is _probe_proc_partitions() inside linux.c.
>>
>> with the following lines in the _probe_proc_partitions(), i am able to
>> get the device listed in parted (ped_device_get_next() gives
>> ped_device corresponding to the RAID device).
>>
>> char* rd_str = NULL;
>>
>> // existing code...
>>
>> rd_str = strstr (part_name, "rd/");
>> if (rd_str)
>> {
>> if (strlen (rd_str+3) != 4)
>> continue;
>> }
>> else if (isdigit (part_name [strlen (part_name) - 1]))
>> // existing code
>
> This doesn't generalize to handle rd/c12d54, for example.
>
Ofcourse yes, i did this just to check *MY DEVICE* ;)
>> I dont know whether the above could be a better solution, anyway, any
>> other solution is highly appreciated.
>
> I like my solution better.
>
So am I :), since, the solution is generalized to handle all of the
rd/cxdx patterns.
> Anyway, can you please tell me if my solution fixed your problem
> also?
>
Yep, it did. It is now working fine. Can you patch it with original
source, so that i can download it directly?
> Thanks,
> Andrew
Thanks and regards,
V. Varadhan.
- Re: Problem in detecting RAID device!!, (continued)
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/24
- Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/24
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/24
- Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/25
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/25
- Message not available
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/26
- Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/26
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/26
- Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/26
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/26
- Re: Problem in detecting RAID device!!,
Veerapuram Varadhan <=
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/26
- Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/26
- Re: Problem in detecting RAID device!!, Andrew Clausen, 2002/12/26
- Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/26
- Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/25
Re: Problem in detecting RAID device!!, Veerapuram Varadhan, 2002/12/26