Author: jim
Date: 2006-04-14 18:28:49 -0600 (Fri, 14 Apr 2006)
New Revision: 1481

Added:
   trunk/linux/linux-2.6.16.5-sun_disklabel_fix-1.patch
Modified:
   trunk/
Log:
 [EMAIL PROTECTED]:  jim | 2006-04-14 17:27:27 -0700
 Added: linux-2.6.16.5-sun_disklabel_fix-1.patch



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1589
   + cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1590

Added: trunk/linux/linux-2.6.16.5-sun_disklabel_fix-1.patch
===================================================================
--- trunk/linux/linux-2.6.16.5-sun_disklabel_fix-1.patch                        
        (rev 0)
+++ trunk/linux/linux-2.6.16.5-sun_disklabel_fix-1.patch        2006-04-15 
00:28:49 UTC (rev 1481)
@@ -0,0 +1,19 @@
+Submitted By: Joe Ciccone <joeciccone at crazyeyesoft dot com>
+Date: 2006-04-14
+Initial Package Version: 2.6.16
+Upstream Status: Sent
+Origin: Joe Ciccone
+Description: This patch fixes fdisk so that it can properly calculate the
+             checksum of a sun disklabel
+
+--- linux-2.6.16.orig/fs/partitions/sun.c      2006-04-14 18:12:32.000000000 
-0400
++++ linux-2.6.16/fs/partitions/sun.c   2006-04-14 18:13:14.000000000 -0400
+@@ -61,7 +61,7 @@
+       }
+       /* Look at the checksum */
+       ush = ((__be16 *) (label+1)) - 1;
+-      for (csum = 0; ush >= ((__be16 *) label);)
++      while (ush < (__be16 *) label)
+               csum ^= *ush--;
+       if (csum) {
+               printk("Dev %s Sun disklabel: Csum bad, label corrupted\n",

-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to