QUERY · ISSUE
Block device `readblock(8, 44)` before `ioctl(1)` for `os.mount(block_device, ...)`
bug
According to docs, a block device interface may implement ioctl(1) "initialize the device". In practice, os.mount(block_device, ...) reads 44 bytes with offset 8 without bothering to call ioctl(1) first. It is probably the auto-detect feature FAT vs littlefs.
CANDIDATE · PULL REQUEST
os.rst: Clarify littlefs requirements.
docs
The doc detailing the need to intercept the erase block ioctl call is ambiguous as evidenced by this thread.
This edit is based on inference from test scripts and docs rather than detailed knowledge of littlefs - please check!