← index #10963PR #7755
Related · medium · value 0.156
QUERY · ISSUE

Block device `readblock(8, 44)` before `ioctl(1)` for `os.mount(block_device, ...)`

openby pulkinopened 2023-03-07updated 2023-03-07
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.

closedby peterhinchopened 2021-09-07updated 2021-09-10
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!

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