extmod/vfs_fat.c still uses _FS_REENTRANT, but lib/oofatfs now uses FF_FS_REENTRANT
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
vfs/fat code not working outside micropython
I've been trying to implement threaded C code with file access using the oofat library and I believe that I am failing because it is relying on a micropython function in vfs_fat_diskio.c when using f_read():
mp_call_method_n_kw(2, 0, vfs->readblocks); in disk_read()
At least that is the call where I get the panic. f_open() and f_stat() are working. I do not fully understand all of the code yet, I'd appreciate any help. I don't even know, what function it is calling yet but it should be replaceable.