X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Ffat%2Ffat.c;h=7f991b25de8d54266e59717ce7ba384c53728065;hb=20cc00ddac48da45d6b4d6eb3c292867b618b361;hp=daa70349d27a786f23140e67808f51f95ce5155a;hpb=2d1a537d87727907bf4d888760cba4abc0b52ad3;p=platform%2Fkernel%2Fu-boot.git diff --git a/fs/fat/fat.c b/fs/fat/fat.c index daa7034..7f991b2 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -89,7 +89,8 @@ fat_register_device(block_dev_desc_t *dev_desc, int part_no) part_offset=0; } else { -#if (CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI) +#if (CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI) || \ + (CONFIG_COMMANDS & CFG_CMD_USB) || defined(CONFIG_SYSTEMACE) disk_partition_t info; if(!get_partition_info(dev_desc, part_no, &info)) { part_offset = info.start; @@ -534,6 +535,10 @@ static dir_entry *get_dentfromdir (fsdata * mydata, int startsect, char s_name[14], l_name[256]; l_name[0] = '\0'; + if (dentptr->name[0] == DELETED_FLAG) { + dentptr++; + continue; + } if ((dentptr->attr & ATTR_VOLUME)) { #ifdef CONFIG_SUPPORT_VFAT if ((dentptr->attr & ATTR_VFAT) && @@ -713,7 +718,7 @@ read_bootsectandvi(boot_sector *bs, volume_info *volinfo, int *fatsize) __u8 do_fat_read_block[MAX_CLUSTSIZE]; /* Block buffer */ -static long +long do_fat_read (const char *filename, void *buffer, unsigned long maxsize, int dols) {