On Tue, 19 Sep 2006, Shailendra Tripathi wrote:
> >> Hi Shailendra,
> >>
> >> I ran the program and it reports:
> >>
> >> Level 6, disks=11 spare_disks=1 raid_disks=10
> >>
> >> which looks good. I don't understand why you got:
> >>
> >> Level 5, disks=7 spare_disks=3 raid_disks=5
> >>
> >> Why would it have 3 spare_disks?
> >
> Perhaps you are running more recent kernel than mine, and, spare_disks
> now reports only actual spares. It did appear little weired that it
> reported spare_disks as 3. get_array_info is changed in recent kernels
> and that should explain this difference.
This is a 2.6.17 kernel. So, with this in mind, is there a change that I
should try in libdisk/md.c? Tim had suggested:
s/nr_disks/raid_disks/
Would this be sufficient? Or should nr_disks be initialized as raid_disks
and then go into the switch clause?
Steve
|