ppcrcd/trunk/yaboot/partition.c

sparky cvs at pld-linux.org
Mon Mar 6 10:32:29 CET 2006


Author: sparky
Date: Mon Mar  6 10:32:26 2006
New Revision: 7101

Modified:
   ppcrcd/trunk/yaboot/partition.c
Log:
- get rid of Open Firmware fat support


Modified: ppcrcd/trunk/yaboot/partition.c
==============================================================================
--- ppcrcd/trunk/yaboot/partition.c	(original)
+++ ppcrcd/trunk/yaboot/partition.c	Mon Mar  6 10:32:26 2006
@@ -181,7 +181,25 @@
 				   swab32(*(unsigned int *)(part->size4)),
 				   512 /*blksize*/,
 				   part->sys_ind /* partition type */ );
+	       continue;
 	  }
+	  char fats[] = { 0x01, 0x04, 0x06, 0x0b, 0x0c, 0x0e, 0x11, 0x14, 0x16,
+	  	0x1b, 0x1c, 0x1e, 0xef };
+	  int fat;
+	  for (fat = 0; fat < sizeof(fats); fat++ )
+		  if ( part->sys_ind == fats[fat] ) {
+			  DEBUG_F("found fat partition: %d\n", partition);
+			  add_new_partition(
+				list,
+				partition,
+				"Fat",
+				'\0',
+				swab32(*(unsigned int *)(part->start4)),
+				swab32(*(unsigned int *)(part->size4)),
+				512 /*blksize*/,
+				part->sys_ind /* partition type */ );
+			  break;
+		  }
      }
 }
 


More information about the pld-cvs-commit mailing list