[Top] [All Lists]

Re: swidth with mdadm and RAID6

To: Shailendra Tripathi <stripathi@xxxxxxxxx>
Subject: Re: swidth with mdadm and RAID6
From: Steve Cousins <cousins@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Sep 2006 15:22:16 -0400 (EDT)
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
In-reply-to: <Pine.LNX.4.10.10609191335491.2460-100000@xxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: cousins@xxxxxxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx

On Tue, 19 Sep 2006, Steve Cousins wrote:

> 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?

I ended up just adding:

        md.nr_disks = md.raid_disks;

right be fore the switch statement and it worked fine in my situation.
Not sure how this would work with other kernels etc. but I'll let you
figure that out.  

Thanks very much for your help.


<Prev in Thread] Current Thread [Next in Thread>