diff options
author | Damien George <damien@micropython.org> | 2021-01-28 13:09:44 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-01-29 15:02:55 +1100 |
commit | 71ea438561b737de7d4bb6bc60412a7e409cf298 (patch) | |
tree | b819b41d8d03997a834ca14ea36fb85552b5acc3 /lib/timeutils | |
parent | 4eaebc1988699db6ebfd35fbe56a3e8d4cd0b373 (diff) |
extmod/vfs: Check block 0 and 1 when auto-detecting littlefs.
The superblock for littlefs is in block 0 and 1, but block 0 may be erased
or partially written, so block 1 must be checked if block 0 does not have a
valid littlefs superblock in it.
Prior to this commit, the mount of a block device which auto-detected the
filysystem type would fail for littlefs if block 0 did not contain a valid
superblock. That is now fixed.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'lib/timeutils')
0 files changed, 0 insertions, 0 deletions