]> git.proxmox.com Git - grub2.git/commitdiff
2008-09-04 Felix Zielcke <fzielcke@z-51.de>
authorfzielcke <fzielcke@localhost>
Sat, 6 Sep 2008 13:56:15 +0000 (13:56 +0000)
committerfzielcke <fzielcke@localhost>
Sat, 6 Sep 2008 13:56:15 +0000 (13:56 +0000)
        * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
        RAID level 1.

ChangeLog
disk/raid.c

index 6c8b60da21b3a225d8e3f2e2ab427cca7ebe8b4d..68593400983981ef1a96dc852595ad2eee6979f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-06  Felix Zielcke  <fzielcke@z-51.de>
+
+       * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
+       RAID level 1.
+
 2008-09-06  Felix Zielcke  <fzielcke@z-51.de>
 
        * fs/iso9660.c (grub_iso9660_date): New structure.
index 3dab0d802b7867b4c67a317df34af63da3c1ed47..62cbcb5bac28e31d3d1a7049194f852a31317551 100644 (file)
@@ -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. */