Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | FAT32 appears to be broken when used with the -d option to populate the msdos |
| 2 | image. This disables the FAT32 autoselection code which means we don't get |
| 3 | broken images with the -d option. It can still be enabled on the commandline |
| 4 | at the users own risk. This changes us back to the 2.10 version's behaviour |
| 5 | which was known to work well even with large images. |
| 6 | |
| 7 | Upstream-Status: Inappropriate [depends on other patches we apply] |
| 8 | |
| 9 | RP 2011/12/13 |
| 10 | |
| 11 | Index: dosfstools-2.11/mkdosfs/mkdosfs.c |
| 12 | =================================================================== |
| 13 | --- dosfstools-2.11.orig/mkdosfs/mkdosfs.c 2011-12-13 13:54:37.538509391 +0000 |
| 14 | +++ dosfstools-2.11/mkdosfs/mkdosfs.c 2011-12-13 13:55:10.258508631 +0000 |
| 15 | @@ -808,10 +808,12 @@ |
| 16 | bs.media = (char) 0xf8; /* Set up the media descriptor for a hard drive */ |
| 17 | bs.dir_entries[0] = (char) 0; /* Default to 512 entries */ |
| 18 | bs.dir_entries[1] = (char) 2; |
| 19 | +/* |
| 20 | if (!size_fat && blocks*SECTORS_PER_BLOCK > 1064960) { |
| 21 | if (verbose) printf("Auto-selecting FAT32 for large filesystem\n"); |
| 22 | size_fat = 32; |
| 23 | } |
| 24 | +*/ |
| 25 | if (size_fat == 32) { |
| 26 | /* For FAT32, try to do the same as M$'s format command: |
| 27 | * fs size < 256M: 0.5k clusters |