We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20236a8 commit e2745b3Copy full SHA for e2745b3
1 file changed
lib/fatfs/ff.c
@@ -4073,7 +4073,7 @@ FRESULT f_mkfs (
4073
n_vol = LD_DWORD(tbl+12); /* Volume size */
4074
} else {
4075
/* Create a partition in this function */
4076
- if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &n_vol) != RES_OK || n_vol < 128)
+ if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &n_vol) != RES_OK || n_vol < 48) /* dpgeorge: allow smaller minimum volume; 48 was 128 */
4077
return FR_DISK_ERR;
4078
b_vol = (sfd) ? 0 : 63; /* Volume start sector */
4079
n_vol -= b_vol; /* Volume size */
0 commit comments