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@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/ataraid-list =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Heinz Mauelshagen Red Hat GmbH Consulting Development Engineer Am Sonnenhang 11 56242 Marienrachdorf Germany Mauelshagen@xxxxxxxxxx +49 2626 141200 FAX 924446 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-