Skip to contentSkip to conversation

Use DOS_EXTENDED_PARTITION

FIX 2.6.6-rc2-mm1 FabF 1 participant 1 message Apr 23, 2004

lore
Share & tools
lore

FabF

author
#0 lore raw

Andrew,

Here's a fix in partition manager to use DOS_EXTENDED_PARTITION rather
than 'not often self-explanatory' 4 & 5.

Regards,
Fabian

fs/partitions/msdos.c +3 -3
diff -Naur orig/fs/partitions/msdos.c edited/fs/partitions/msdos.c
@@ -407,8 +407,8 @@
 	 * On the second pass look inside *BSD, Unixware and Solaris partitions.
 	 */
 
-	state->next = 5;
-	for (slot = 1 ; slot <= 4 ; slot++, p++) {
+	state->next = DOS_EXTENDED_PARTITION;
+	for (slot = 1 ; slot < DOS_EXTENDED_PARTITION ; slot++, p++) {
 		u32 start = START_SECT(p)*sector_size;
 		u32 size = NR_SECTS(p)*sector_size;
 		if (!size)
@@ -435,7 +435,7 @@
 
 	/* second pass - output for each on a separate line */
 	p = (struct partition *) (0x1be + data);
-	for (slot = 1 ; slot <= 4 ; slot++, p++) {
+	for (slot = 1 ; slot < DOS_EXTENDED_PARTITION ; slot++, p++) {
 		unsigned char id = SYS_IND(p);
 		int n;