From: fzielcke Date: Sat, 6 Sep 2008 13:56:15 +0000 (+0000) Subject: 2008-09-04 Felix Zielcke X-Git-Tag: 1.98~1263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8a83df664ad34954a36b21cf46b1f54c43ea799;p=thirdparty%2Fgrub.git 2008-09-04 Felix Zielcke * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for RAID level 1. --- diff --git a/ChangeLog b/ChangeLog index 6c8b60da2..685934009 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-06 Felix Zielcke + + * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for + RAID level 1. + 2008-09-06 Felix Zielcke * fs/iso9660.c (grub_iso9660_date): New structure. diff --git a/disk/raid.c b/disk/raid.c index 3dab0d802..62cbcb5ba 100644 --- a/disk/raid.c +++ b/disk/raid.c @@ -575,6 +575,11 @@ insert_array (grub_disk_t disk, struct grub_raid_array *new_array, /* 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. */