BL602 SDK (Pine64 fork)
Go to file
Paul Capron 9d3c1f77da
vfs: Fix counting in inode_avail_count
As seen in `inode_del` (and `inode_alloc`), a free (`NOT_INIT`) node can be found anywhere in `g_vfs_dev_nodes`; it’s a “sparse” list.
So when checking for free nodes, the iterating index variable (`e`) shall be used, not the counter (`count`). The code got that wrong.
For instance, if the first node is not available (type is not `VFS_TYPE_NOT_INIT`), then the function previously returned 0, no matter what, and was iterating the node list in vain.
2020-10-28 11:36:43 +01:00
components vfs: Fix counting in inode_avail_count 2020-10-28 11:36:43 +01:00
customer_app
docs/html
image_conf
make_scripts_riscv
toolchain/riscv
tools
clean
LICENSE
LICENSE-2.0.txt
README.rst Update README.rst 2020-10-26 20:51:11 +08:00
version_module.txt
version.txt

README
=========

Bouffalolab bl_iot_sdk. Support BL602 Wi-Fi/BLE Combo RISC-V based Chip.

Check ``docs/html`` for more detail.

Fire an issue, if you have any issue or need any support.