From: 黄涛 Date: Sat, 30 Jul 2011 08:16:45 +0000 (+0800) Subject: temp revert msdos change X-Git-Tag: firefly_0821_release~10028 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8937476fff671d634c8b8df256d824fce0e60746;p=firefly-linux-kernel-4.4.55.git temp revert msdos change --- diff --git a/fs/partitions/msdos.c b/fs/partitions/msdos.c index 630cd66c4e6d..90be97f1f5a8 100644 --- a/fs/partitions/msdos.c +++ b/fs/partitions/msdos.c @@ -440,13 +440,6 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev) return 0; } -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("\n%s..%d... ==== Begin to parse sdcard-partition. ====xbw[mmc0]===\n",__FUNCTION__, __LINE__); - } -#endif - /* * Now that the 55aa signature is present, this is probably * either the boot sector of a FAT filesystem or a DOS-type @@ -456,12 +449,6 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev) p = (struct partition *) (data + 0x1be); for (slot = 1; slot <= 4; slot++, p++) { if (p->boot_ind != 0 && p->boot_ind != 0x80) { -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("%s..%d... ==== The sdcard has not MBR. ====xbw[mmc0]===\n",__FUNCTION__, __LINE__); - } -#endif /* * Even without a valid boot inidicator value * its still possible this is valid FAT filesystem @@ -472,21 +459,9 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev) && fat_valid_media(fb->media)) { printk("\n"); put_dev_sector(sect); -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("%s..%d... ==== The DBR(slot=%d) is valid. ====xbw[mmc0]===\n",__FUNCTION__, __LINE__, slot); - } -#endif return 1; } else { put_dev_sector(sect); -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("%s..%d... ==== The DBR is invalid. ====xbw[mmc0]===\n",__FUNCTION__, __LINE__); - } -#endif return 0; } } @@ -509,25 +484,13 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev) * First find the primary and DOS-type extended partitions. * On the second pass look inside *BSD, Unixware and Solaris partitions. */ -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("%s..%d... ==== The sdcard has MBR. ====xbw[mmc0]===\n", __FUNCTION__, __LINE__); - } -#endif + state->next = 5; for (slot = 1 ; slot <= 4 ; slot++, p++) { sector_t start = start_sect(p)*sector_size; sector_t size = nr_sects(p)*sector_size; if (!size) continue; -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("%s..%d... ==== partition-%d, size=%luKB ====xbw[mmc0]===\n",\ - __FUNCTION__, __LINE__, slot, size/2); - } -#endif if (is_extended_partition(p)) { /* * prevent someone doing mkfs or mkswap on an @@ -537,12 +500,6 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev) */ sector_t n = 2; n = min(size, max(sector_size, n)); -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("%s...%d... ==== extend partition-%d....====xbw[mmc0]===\n",__FUNCTION__, __LINE__, slot); - } -#endif put_partition(state, slot, start, n); printk(" <"); @@ -550,12 +507,6 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev) printk(" >"); continue; } -#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD) - if(179 == MAJOR(bdev->bd_dev)) - { - printk("%s..%d... ==== main partition-%d....====xbw[mmc0]===\n",__FUNCTION__, __LINE__, slot); - } -#endif put_partition(state, slot, start, size); if (SYS_IND(p) == LINUX_RAID_PARTITION) state->parts[slot].flags = 1;