lkml.org 
[lkml]   [2004]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[FIX 2.6.6-rc2-mm1] Use DOS_EXTENDED_PARTITION
From
Date
Andrew,

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

Regards,
Fabian
diff -Naur orig/fs/partitions/msdos.c edited/fs/partitions/msdos.c
--- orig/fs/partitions/msdos.c 2004-04-04 05:37:24.000000000 +0200
+++ edited/fs/partitions/msdos.c 2004-04-23 21:03:50.000000000 +0200
@@ -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;
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.588 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site