Hello!

The patch for FAT32 support breaks FAT12 and FAT16.
The attached patch fixes the problem with FAT12 and FAT16.

It has not been tested with FAT32, but I'm quite confident that my patch
shouldn't break it, as it does the right thing.

Pavel Roskin
Index: stage2/fsys_fat.c
===================================================================
RCS file: /gd/gnu/anoncvsroot/grub/stage2/fsys_fat.c,v
retrieving revision 1.4
diff -u -r1.4 fsys_fat.c
--- fsys_fat.c  1999/08/25 07:46:58     1.4
+++ fsys_fat.c  1999/08/28 10:36:50
@@ -87,6 +87,7 @@
       BLK_BLKSTART (BLK_BLKLIST_START) = FAT_BPB_ROOT_DIR_START (BPB);
       fsmax = filemax = SECTOR_SIZE * (BLK_BLKLENGTH (BLK_BLKLIST_START)
                                       = FAT_BPB_ROOT_DIR_LENGTH (BPB));
+      return 1;
     }
   else
     /* any real directory/file */

Reply via email to