mbr: if extend partition, show ebr
authorMinkyu Kang <mk7.kang@samsung.com>
Fri, 26 Nov 2010 06:40:07 +0000 (15:40 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 26 Nov 2010 06:40:07 +0000 (15:40 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/misc/mbr.c

index 75c9641..2024274 100644 (file)
@@ -90,7 +90,7 @@ static void ebr_show(struct mmc *mmc, struct mbr_partition *mp, int ebr_next)
                putc(msg[i]);
        putc('\n');
 
-       if (p->lba)
+       if (p->lba && p->partition_type == 0x5)
                ebr_show(mmc, p, 1);
 
 }
@@ -140,7 +140,7 @@ static void mbr_show(void)
                printf("lba      0x%08x (%d), ", mp->lba, mp->lba);
                printf("nsectors 0x%08x (%d)\n", mp->nsectors, mp->nsectors);
 
-               if (mp->lba)
+               if (mp->lba && mp->partition_type == 0x5)
                        ebr_show(mmc, mp, 0);
        }
 }