Messages in this thread Patch in this message | | | Subject | [FIX 2.6.6-rc2-mm1] Use DOS_EXTENDED_PARTITION | From | FabF <> | Date | Fri, 23 Apr 2004 21:15:26 +0200 |
| |
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; | |