[1855] 2008-09-04 Felix Zielcke <[email protected]>

Felix Zielcke <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1855
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1855
Author:   fzielcke
Date:     2008-09-06 13:56:15 +0000 (Sat, 06 Sep 2008)

Log Message:
-----------
2008-09-04  Felix Zielcke  <[email protected]>

        * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
        RAID level 1.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/disk/raid.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-09-06 11:18:06 UTC (rev 1854)
+++ trunk/grub2/ChangeLog	2008-09-06 13:56:15 UTC (rev 1855)
@@ -1,5 +1,10 @@
 2008-09-06  Felix Zielcke  <[email protected]>
 
+	* disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
+	RAID level 1.
+
+2008-09-06  Felix Zielcke  <[email protected]>
+
 	* fs/iso9660.c (grub_iso9660_date): New structure.
 	(grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
 	(grub_iso9660_uuid): New function.

Modified: trunk/grub2/disk/raid.c
===================================================================
--- trunk/grub2/disk/raid.c	2008-09-06 11:18:06 UTC (rev 1854)
+++ trunk/grub2/disk/raid.c	2008-09-06 13:56:15 UTC (rev 1855)
@@ -575,6 +575,11 @@
       /* 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. */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.