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
Gregory Nutt
65ef3acf70
fs/spiffs: Still uses some internal error codes that should be replaced with errors from errno.h. For now, I just added a mapping function before any value is returned to the caller: And of these detailed internal errors are simply mapped to -EFTYPE. Most are related to improper internal data structures so -ETYPE is possibly appropriate. Aslo SPIFFs is no longer is EXPERIMENTAL. Many things work but I the code is very immature and many things will not work.
2018-09-27 11:33:09 -06:00
Gregory Nutt
554745946d
fs/spiffs: The MTD interfaces needs its own, dedicated page buffer for read-modify-write operations. It cannot share the normal 'working' page buffer because it is sometimes in-use when the MTD interface needs it. Also and more DEBUG output and controls for the MTD interface.
2018-09-27 09:35:58 -06:00
Gregory Nutt
7a2f70495a
fs/spiffs: Fix yet another interface with NuttX MTD. This time, the calculation of the number of whole blocks.
2018-09-26 20:00:25 -06:00
Gregory Nutt
5cc68ad3b8
fs/spiffs: Fix yet another interface with NuttX MTD. This time, the calculatio of the terminal block number.
2018-09-26 18:30:46 -06:00
Gregory Nutt
b4488a0549
fs/spiffs: Fix an error in write operation. examples/fstest now gets further before errors occur, but still does not work correctly.
2018-09-26 18:00:46 -06:00
Gregory Nutt
31e6fb561b
fs/spiffs: Costmetic name changes more more consistency.
2018-09-26 15:50:55 -06:00
Gregory Nutt
d59893a456
fs/spiffs: Fixes yet another SPIFFS/MTD interfacing bug.
2018-09-26 15:16:38 -06:00
Gregory Nutt
63ba200957
fs/spiffs: Correct error in MTD multi-block read/write logic.
2018-09-26 12:29:42 -06:00
Gregory Nutt
6d2cce99e1
fs/spiffs: Fix more problems found in testing. It is getting closer but examples/fstest is still showing problem.
2018-09-26 10:05:43 -06:00
Gregory Nutt
71eac2d530
fs/spiffs: Correct the MTD block write logic.
2018-09-25 18:05:45 -06:00
Gregory Nutt
9984e209ab
fs/spiffs: Various fixes from initial testing. Still lots of issues. Also changes from further review to get better naming consistency and functional partitioning.
2018-09-25 16:19:03 -06:00