nuttx/fs
Brennan Ashton 9393572aea Revert "fs/nxffs: Fix scan good block slowly and scan an invalid block"
This reverts commit 97be116a39.

This commit broke nxffs.  This leaves the first block as empty which
then exposes another bug where when the pack is called because we
have reached the end of flash and need to look for deleted inodes
we search the first block find no inode and assume that there
are no more inodes.  This then results in corrupting the filesystem
by writing over existing inodes.

This can be seen by runing the sim:nxffs configuration.
Prior to this commit the first pass of writing files would look like
this:
NXFFS Dump:
  BLOCK:OFFS  TYPE  STATE   LENGTH
      0:5     INODE OK       2680
      0:78    DATA  OK        424
      1:5     DATA  OK        497
      2:5     DATA  OK        497
      3:5     DATA  OK        497
      4:5     DATA  OK        497
      5:5     DATA  OK        268
      5:283   INODE OK       7410
      5:425   DATA  OK         77
      6:5     DATA  OK        497

With this commit:
NXFFS Dump:
  BLOCK:OFFS  TYPE  STATE   LENGTH
      0:0     BLOCK ERASED    512
      1:5     INODE OK       6394
      1:39    DATA  OK        463
      2:5     DATA  OK        497
      3:5     DATA  OK        497

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-11-19 18:08:41 -08:00
..
aio sched/: Make more naming consistent 2020-05-17 14:01:00 -03:00
binfs Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
cromfs Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
dirent fs: Add the relative path support 2020-09-24 03:13:27 -07:00
driver Change all files come from Xiaomi/Pinecone to Apache License 2.0 2020-08-22 17:37:21 -06:00
fat Fix some typos in comments 2020-11-08 18:58:20 +01:00
hostfs Fix some typos in comments 2020-11-08 18:58:20 +01:00
inode fs: flashback to release all file descriptors in group to increase debugging time. 2020-11-17 18:54:31 -08:00
littlefs fs/littlefs: enable the low level log only on debug mode 2020-08-18 12:13:32 +01:00
mmap Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
mount fs: add missing macro 'CONFIG_FS_HOSTFS' for 'NODFS_SUPPORT'. 2020-10-17 23:22:35 +08:00
mqueue Fix inverted errno in mq_open 2020-08-20 20:35:16 -03:00
nfs Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
nxffs Revert "fs/nxffs: Fix scan good block slowly and scan an invalid block" 2020-11-19 18:08:41 -08:00
partition Change all files come from Xiaomi/Pinecone to Apache License 2.0 2020-08-22 17:37:21 -06:00
procfs fs/procfs/fs_procfsiobinfo.c: Add a missing entry for can 2020-11-16 08:29:00 -08:00
romfs Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
semaphore Check return from nxsem_wait_initialize() 2020-03-30 17:09:45 +01:00
shm fs/: Remove dangling space at the end of lines. 2017-06-28 13:17:55 -06:00
smartfs fs/smartfs/smartfs_procfs.c: Fix printf format warnings 2020-11-16 08:29:00 -08:00
spiffs Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
tmpfs Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
unionfs Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
userfs fix nxstyle warning 2020-07-10 21:30:02 +01:00
vfs eventfd: remove the unique minor limit 2020-11-11 18:26:59 -08:00
fs_initialize.c Remove some block comments before empty code sections 2016-04-11 18:16:04 -06:00
Kconfig vfs/epoll: add epoll_create1(2) implement 2020-08-17 23:41:13 -05:00
Makefile Makefile: Fix Make.dep not updated by config changes 2020-07-28 03:59:45 -05:00