btashton commented on issue #2092:
URL:
https://github.com/apache/incubator-nuttx/issues/2092#issuecomment-727532789
When nxffs_mediacheck is called on block 0 and the filesystem looks like
this, it will fail thinking that there are no inodes. This is not correct. It
kind of looks like `nxffs_nextentry` is hitting that empty space and not
looking far enough to see block 1 before giving up and saying the rest of the
flash must be zero.
```
NXFFS Dump:
BLOCK:OFFS TYPE STATE LENGTH
0:0 BLOCK ERASED 512
1:5 INODE DELETED 6394
1:39 DATA OK 463
2:5 DATA OK 497
3:5 DATA OK 497
4:5 DATA OK 497
5:5 DATA OK 497
6:5 DATA OK 497
7:5 DATA OK 497
8:5 DATA OK 497
9:5 DATA OK 497
10:5 DATA OK 497
11:5 DATA OK 497
12:5 DATA OK 497
13:5 DATA OK 464
13:479 INODE DELETED 339
```
If I force `nxffs_mediacheck` to start at block 1 instead of 0 this will
pass.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]