* [FIX 2.6.6-rc2-mm1] Use DOS_EXTENDED_PARTITION
@ 2004-04-23 19:15 FabF
0 siblings, 0 replies; only message in thread
From: FabF @ 2004-04-23 19:15 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 140 bytes --]
Andrew,
Here's a fix in partition manager to use DOS_EXTENDED_PARTITION rather
than 'not often self-explanatory' 4 & 5.
Regards,
Fabian
[-- Attachment #2: dosextended1.diff --]
[-- Type: text/x-patch, Size: 848 bytes --]
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-23 19:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 19:15 [FIX 2.6.6-rc2-mm1] Use DOS_EXTENDED_PARTITION FabF
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®