Alin Jerpelea
f9fb182809
Author: Gregory Nutt: update licenses to Apache
...
Update files from Gregory Nutt to Apache 2.0 license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-05 12:15:56 -03:00
Jiuzhu Dong
13100cf248
fs/readdir: Must reserve a byte for the NUL terminator
...
Change-Id: I1df0c278d289b90cc54512c0ee256a95549785ca
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-01-26 18:22:35 -08:00
YAMAMOTO Takashi
b3d36219e4
spiffs: Document how to generate images
2021-01-06 03:06:39 -06:00
YAMAMOTO Takashi
7305e04336
spiffs/Kconfig: Mention that CONFIG_SPIFFS_MAX_NAME is an on-flash thing
2021-01-06 03:06:39 -06:00
YAMAMOTO Takashi
3ba050a4c2
spiffs: Rename the upsteam readme to README-spiffs.md
...
To make a room for NuttX specific documentation.
2021-01-06 03:06:39 -06:00
YAMAMOTO Takashi
c9b783e5e6
spiffs: Prefix filenames with '/' as other implmenetations do
2021-01-06 03:06:39 -06:00
YAMAMOTO Takashi
9b7e7efeb8
spiffs_pgobj_ndxheader_s: Add a missing alignment
...
Withtout this change, I was not able to read images built
with the following tools:
* https://github.com/igrr/mkspiffs
* spiffsgen.py from ESP-IDF
Introduce a new Kconfig option, SPIFFS_COMPAT_OLD_NUTTX,
for those who prefer to keep the on-disk (bug-to-bug?) compatibility
with the older NuttX.
2021-01-06 03:06:39 -06:00
YAMAMOTO Takashi
e38463ffff
fs/spiffs/src/spiffs_core.h: Appease nxstyle
2021-01-06 03:06:39 -06:00
YAMAMOTO Takashi
1d438bfb9b
fs/spiffs/src/spiffs_vfs.c: Fix a comment typo
2020-12-18 06:32:40 -06:00
YAMAMOTO Takashi
b4d68feee9
fs/spiffs/src/spiffs_vfs.c: Fix a typo in a message
...
"page pages" -> "pages"
2020-12-18 06:32:40 -06:00
YAMAMOTO Takashi
97b86d5848
fs/spiffs/src/spiffs_core.c: Don't assume finfo() is a macro
2020-12-06 09:03:09 -06:00
YAMAMOTO Takashi
0dee21503d
fs/spiffs/src/spiffs_mtd.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
be013cc338
fs/spiffs/src/spiffs_gc.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
a6b4c1b755
fs/spiffs/src/spiffs_core.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
88bc46f4a6
fs/spiffs/src/spiffs_vfs.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
ac6b08c8e9
fs/spiffs/src/spiffs_mtd.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
38e6f68535
fs/spiffs/src/spiffs_core.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
3aa29095b2
fs/spiffs/src/spiffs_vfs.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
0b48fed6ee
fs/spiffs/src/spiffs_core.c: Appease nxstyle
2020-11-20 22:22:53 -08:00
Xiang Xiao
eb4121ce38
Change all 'Nuttx' to 'NuttX'
...
Unify the naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00
Xiang Xiao
9dff16e0e4
fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ieaf325c899d1c349d64dfa15bddcc32afd1fce42
2020-07-10 21:30:02 +01:00
Xiang Xiao
23668a4b9b
build: Remove the empty variable assignment
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:24:13 -06:00
Xiang Xiao
5eae32577e
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:02:55 -06:00
Xiang Xiao
d9d2fc0d0a
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-05 08:27:58 -06:00
Gregory Nutt
156963a903
Check return from nxsem_wait_initialize()
...
Resolution of Issue 619 will require multiple steps, this part of the first step in that resolution: Every call to nxsem_wait_uninterruptible() must handle the return value from nxsem_wait_uninterruptible properly. This commit is only for those files under fs/tmpfs and fs/spiffs. Still do do: The rest of fs/ and all of drivers/ and arch/.
2020-03-29 22:11:13 +01:00
Gregory Nutt
5c0e8e88b1
Revert "Makefile: move INCDIROPT to common place ( #625 )"
...
This reverts commit b9ace36fcc
.
This change was added by PR 625 but has a serious logic flaw. It removes all occurrences of INCDIROPT and replaces it with a definition in tools/Config.mk:
else ifeq ($(WINTOOL),y)
DEFINE = "$(TOPDIR)/tools/define.sh"
INCDIR = "$(TOPDIR)/tools/incdir.sh" -w
This logic flaw is the Config.mk is included in all Make.defs files BEFORE WINTOOL is defined. As a result, the definition is wrong in many places when building under Cygwin with a Windows native toolchain.
2020-03-26 08:50:29 -07:00
Xiang Xiao
b9ace36fcc
Makefile: move INCDIROPT to common place ( #625 )
2020-03-26 08:09:59 -06:00
Gregory Nutt
2b532ae4a8
fs/: Remove support for CONFIG_FS_READABLE
2020-03-22 08:24:07 -05:00
Gregory Nutt
7a871e2f29
fs/: Remove support for CONFIG_FS_WRITABLE
2020-03-22 08:24:07 -05:00
Nathan Hartman
a5e643b0cd
Fix typos in comments and documentation.
2020-03-16 20:01:11 -06:00
Xiang Xiao
cde88cabcc
Run codespell -w with the latest dictonary again
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-23 22:27:46 +01:00
Xiang Xiao
bd4e8e19d3
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:45:07 -06:00
Xiang Xiao
a8de37fbec
Ensure all source code end with one and only one newline
...
by this command:
git ls-files -z | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2020-02-08 07:25:56 -06:00
Xiang Xiao
5c80b94820
Replace #include <semaphore.h> to #include <nuttx/semaphore.h>
...
Since the kernel side should call nxsem_xxx instead and remove the unused inclusion
2020-02-01 08:27:30 -06:00
Xiang Xiao
80277d1630
Refine the preprocessor conditional guard style ( #190 )
2020-01-31 19:07:39 +01:00
Xiang Xiao
68951e8d72
Remove exra whitespace from files ( #189 )
...
* Remove multiple newlines at the end of files
* Remove the whitespace from the end of lines
2020-01-31 09:24:49 -06:00
Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Gregory Nutt
bd3cc792ff
fs/: Run all .c files under fs/ through tools/nxstyle.
2019-10-27 11:48:14 -06:00
Gregory Nutt
be3dd0bac6
fs/: Fix various coding standard issues found while testing tools/nxstyle.c
2019-03-01 15:01:04 -06:00
Gregory Nutt
a037aeec5d
Trivial update to a comments and to SPIFFS comments and debug output.
2018-09-30 07:15:15 -06:00
Gregory Nutt
d23c5e0d61
fs/spiffs: Add a check for an error in a return value. Improve some working in the TODO list.
2018-09-29 17:19:04 -06:00
Gregory Nutt
cc539d7f95
fs/spiffs: Need to flush cache to FLASH when closing file. Also updates TODO list.
2018-09-29 15:04:11 -06:00
Gregory Nutt
d8bfb4e3a2
fs/spiffs: Fix some disagreement between the NuttX wrapper and the core SPIFFS with regard to meaning of a return value. This was causing more writes than necessary and wasting FLASH space.
2018-09-29 11:01:46 -06:00
Gregory Nutt
5fad655982
configs/sim/spiffs/defconfig: Remove CONFIG_EXPERIMENTAL.
2018-09-28 20:05:42 -06:00
Gregory Nutt
6a12213fbb
fs/spiffs: I have been test with apps/examples/fstest which provides a good exercise but of the FS internals but not of the user interface. I build an SPIFFS aware NSH configuration and found and fixed a number of glaring usability errors: (1) Missing logic to stat the SPIFFS root directory, (2) Confusion in use to two similarly named struct field... caused files to be unexpectedly deleted. (3) Fixed a sempahore deadlock condition. And (5) Fix /procfs/mount. It was unaware of the SPIFFS file system type.
2018-09-28 17:35:25 -06:00
Gregory Nutt
e90723307e
fs/spiffs: Fix an error in who the deferred 'unlink' is handling in close(). Modify read() and write behavior() so that they do not return so many partial reads and writes.
2018-09-28 13:21:44 -06:00
Gregory Nutt
294456fa20
fs/spiffs: Add logic to dump the logical context of the FLASH.
2018-09-28 11:23:42 -06:00
Gregory Nutt
2ca8c6682c
fs/spiffs: fs/spiffs: Fix several bugs: (1) Fix bad statfs return values. (2) Fix an error in spiffs_unlink(). Fix an in error detection logic when closing a file.
2018-09-27 19:29:00 -06:00
Gregory Nutt
2d2dd5e9e3
fs/spiffs: Fix bad check for return value. In NuttX all values greater than or equeal to 0 are successes.
2018-09-27 14:24:46 -06:00
Gregory Nutt
1273f727c0
File System IOCTLs: Three new IOCTLS were added for SPIFFS, two of which were duplicates.
2018-09-27 12:25:23 -06:00