[1801] 2008-08-12 Bean <[email protected]>

Bean <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1801
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1801
Author:   bean
Date:     2008-08-12 13:58:29 +0000 (Tue, 12 Aug 2008)

Log Message:
-----------
2008-08-12  Bean  <[email protected]>

	* disk/raid.c (grub_raid_read): Fix a bug in raid0 code.

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

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-08-11 14:57:39 UTC (rev 1800)
+++ trunk/grub2/ChangeLog	2008-08-12 13:58:29 UTC (rev 1801)
@@ -1,3 +1,7 @@
+2008-08-12  Bean  <[email protected]>
+
+	* disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
+
 2008-08-11  Robert Millan  <[email protected]>
 
 	* kern/i386/linuxbios/startup.S: Move from here ...

Modified: trunk/grub2/disk/raid.c
===================================================================
--- trunk/grub2/disk/raid.c	2008-08-11 14:57:39 UTC (rev 1800)
+++ trunk/grub2/disk/raid.c	2008-08-12 13:58:29 UTC (rev 1801)
@@ -177,7 +177,7 @@
 	    if (err)
 	      break;
 
-	    buf += read_size;
+	    buf += read_size << GRUB_DISK_SECTOR_BITS;
 	    size -= read_size;
 	    if (! size)
 	      break;
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.