Small patch for activating mirrored configurations
Heinz Mauelshagen
mauelshagen at redhat.com
Mon Oct 4 14:32:46 UTC 2004
Erik,
thanks for the patch.
Managing to boot off a (mirrored) setup with dmraid/initrd is
interesting for a lot of people on this list.
Can you provide details on it for everyone, please ?
Heinz
On Mon, Oct 04, 2004 at 12:44:48AM +0200, Erik Agsjö wrote:
> Here's a small dmraid patch for avoiding division by zero errors when
> activating zero stride configurations such as my mirrored sil3112 setup.
>
> I've finally managed to boot from my mirrored setup, after hours of
> initrd'ing..
>
> /Erik
>
> --- lib/activate/activate.c Tue Sep 7 13:18:30 2004
> +++ /home/erkkah/downloads/dmraid/1.0.0-rc4/lib/activate/activate.c Thu Sep 23 22:01:57 2004
> @@ -19,7 +19,7 @@
> struct dmraid_set *r;
> struct dmraid_dev *rd;
>
> - if (min % rs->stride)
> + if ((rs->stride != 0) && (min % rs->stride != 0))
> min += rs->stride;
>
> list_for_each_entry(r, &rs->sets, list) {
>
>
> _______________________________________________
> Ataraid-list mailing list
> Ataraid-list at redhat.com
> https://www.redhat.com/mailman/listinfo/ataraid-list
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen at RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the Ataraid-list
mailing list