← index #15781PR #2140
Related · medium · value 4.945
QUERY · ISSUE

extmod/vfs_fat.c still uses _FS_REENTRANT, but lib/oofatfs now uses FF_FS_REENTRANT

openby dhalbertopened 2024-09-03updated 2024-09-03
bug

Port, board and/or hardware

anything using vfs_fat.c

MicroPython version

v1.23 and more recent

Reproduction

extmod/vfs_fat.c still has a couple of #if _FS_REENTRANT, but all the code in lib/oofatfs/ switched to FF_FS_REENTRANT years ago. So I think this was an edit that should have been made but was not.

We noticed this when merging MicroPython into CircuitPython during the last couple of merges.

Expected behaviour

Observed behaviour

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

OO version of FatFS library

mergedby dpgeorgeopened 2016-06-01updated 2017-02-28

This is work in progress, but comments welcome :)

It adds a variant of the FatFS library which takes a FATFS object (or similar) as the first argument of all functions.

It also modifies (in a minimal but hacky way) the extmod/vfs_fat* code to use it when MICROPY_FATFS_OBJ is defined.

Unix is used for testing and with this PR you can create more than one RAMFS.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied