8000 Reshrink the root directory to share space better and update the test. · pcurry/circuitpython@847f6c0 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 847f6c0

Browse files
committed
Reshrink the root directory to share space better and update the test.
1 parent e0c2201 commit 847f6c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/oofatfs/ff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5085,7 +5085,7 @@ FRESULT f_mkfs (
50855085
)
50865086
{
50875087
const UINT n_fats = 1; /* Number of FATs for FAT12/16/32 volume (1 or 2) */
5088-
const UINT n_rootdir = 512; /* Number of root directory entries for FAT12/16 volume */
5088+
const UINT n_rootdir = 128; /* Number of root directory entries for FAT12/16 volume */
50895089
static const WORD cst[] = {1, 4, 16, 64, 256, 512, 0}; /* Cluster size boundary for FAT12/16 volume (4Ks unit) */
50905090
static const WORD cst32[] = {1, 2, 4, 8, 16, 32, 0}; /* Cluster size boundary for FAT32 volume (128Ks unit) */
50915091
BYTE fmt, sys, *buf, *pte, part; void *pdrv;

tests/extmod/vfs_fat_ramdisk.py.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
True
22
True
3-
statvfs: (512, 512, 38, 38, 38, 0, 0, 0, 0, 255)
3+
statvfs: (512, 512, 40, 40, 40, 0, 0, 0, 0, 255)
44
getcwd: /
55
True
66
['foo_file.txt']

0 commit comments

Comments
 (0)
0