Am Donnerstag, den 04.09.2008, 11:29 +0200 schrieb Felix Zielcke: > The easiest fix would be probable to just set chunk_size to for example > 64. > Attached patch does it, but maybe you have a better/other idea?
Thanks to Bean on IRC. I think this is now the right place to do it, at end of insert_array in case of a new one. -- Felix Zielcke
2008-09-04 Felix Zielcke <[EMAIL PROTECTED]> * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for RAID level 1. Index: disk/raid.c =================================================================== --- disk/raid.c (Revision 1850) +++ disk/raid.c (Arbeitskopie) @@ -575,6 +575,11 @@ insert_array (grub_disk_t disk, struct g /* Add our new array to the list. */ array->next = array_list; array_list = array; + + /* RAID 1 doestn't use a chunksize but code assumes one so set + one. */ + if (array->level == 1) + array->chunk_size = 64; } /* Add the device to the array. */
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel