mynewt-nffs.git
2 months agoMerge pull request #11 from mped-oticon/master master
Andrzej Kaczmarek [Thu, 27 Sep 2018 12:37:25 +0000 (14:37 +0200)] 
Merge pull request #11 from mped-oticon/master

portability: Avoid void* arithmetics which is a GNU extension

2 months agoportability: Avoid void* arithmetics which is a GNU extension 11/head
Mark Ruvald Pedersen [Thu, 27 Sep 2018 10:53:51 +0000 (12:53 +0200)] 
portability: Avoid void* arithmetics which is a GNU extension

Under GNU C, sizeof(void) = 1. This commit simply uses uint8_t.

Pointer arithmetics over void types is:
 * A GNU C extension
 * Not supported by Clang
 * Illegal across all ISO C standards

See also: https://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html

Signed-off-by: Mark Ruvald Pedersen <mped@oticon.com>
3 months agoMerge pull request #9 from nvlsianpu/bugfix/inode_gc
Andrzej Kaczmarek [Fri, 14 Sep 2018 09:32:54 +0000 (11:32 +0200)] 
Merge pull request #9 from nvlsianpu/bugfix/inode_gc

bugfix: during inode update the file name might be corrupted

3 months agobugfix: during inode update the file name might be corrupted 9/head
Andrzej Puzdrowski [Fri, 14 Sep 2018 09:03:42 +0000 (11:03 +0200)] 
bugfix: during inode update the file name might be corrupted

While inode is updated it is possible that Garbage Collection
is called which caused overwrite of inode's filename as the same
buffer was used to keep the filename and copping data in GC.

This patch uses buffer on the stack for keeping filename while inode
is updated which fix the issue.

The patch cause 128 B increase of stack consumption.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
8 months agoMerge pull request #7 from nvlsianpu/zephyr/statistic_desc
Andrzej Kaczmarek [Wed, 21 Mar 2018 14:11:41 +0000 (15:11 +0100)] 
Merge pull request #7 from nvlsianpu/zephyr/statistic_desc

Enable statistic for NFFS

8 months agoEnable statistic for NFFS 7/head
Andrzej Puzdrowski [Fri, 16 Mar 2018 18:20:51 +0000 (19:20 +0100)] 
Enable statistic for NFFS

Zephyr introduce newtmgr system statistic functionalities.
This patch enable its in nffs sources as it originally was in
mynewt.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
14 months agoMerge pull request #6 from carlescufi/doc_revamp
Szymon Janc [Wed, 20 Sep 2017 07:01:40 +0000 (09:01 +0200)] 
Merge pull request #6 from carlescufi/doc_revamp

doc: Revamp README.md

14 months agodoc: Revamp README.md 6/head
Carles Cufi [Tue, 19 Sep 2017 13:06:24 +0000 (15:06 +0200)] 
doc: Revamp README.md

Add information regarding RTOS support and Git repository, as well as
correct style and grammar.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
14 months agoMerge pull request #5 from sjanc/readme
Szymon Janc [Tue, 19 Sep 2017 10:22:17 +0000 (12:22 +0200)] 
Merge pull request #5 from sjanc/readme

Update README with JIRA link for reporting issues

14 months agoUpdate README with JIRA link for reporting issues 5/head
Szymon Janc [Tue, 19 Sep 2017 09:22:05 +0000 (11:22 +0200)] 
Update README with JIRA link for reporting issues

14 months agoMerge pull request #4 from andrzej-kaczmarek/fix-guard
Andrzej Kaczmarek [Tue, 19 Sep 2017 08:23:42 +0000 (10:23 +0200)] 
Merge pull request #4 from andrzej-kaczmarek/fix-guard

Fix invalid #define name

14 months agoFix invalid #define name 4/head
Andrzej Kaczmarek [Mon, 18 Sep 2017 14:17:10 +0000 (16:17 +0200)] 
Fix invalid #define name

14 months agoMerge pull request #3 from andrzej-kaczmarek/missing-license
Andrzej Kaczmarek [Mon, 18 Sep 2017 11:28:49 +0000 (13:28 +0200)] 
Merge pull request #3 from andrzej-kaczmarek/missing-license

Add missing license to config.h

14 months agoAdd missing license to config.h 3/head
Andrzej Kaczmarek [Mon, 18 Sep 2017 10:22:20 +0000 (12:22 +0200)] 
Add missing license to config.h

15 months agoMerge pull request #2 from andrzej-kaczmarek/dev
Andrzej Kaczmarek [Fri, 8 Sep 2017 10:30:29 +0000 (12:30 +0200)] 
Merge pull request #2 from andrzej-kaczmarek/dev

Rename 'glue' to 'os'

15 months agoRename 'glue' to 'os' 2/head
Andrzej Kaczmarek [Fri, 8 Sep 2017 08:45:38 +0000 (10:45 +0200)] 
Rename 'glue' to 'os'

15 months agoMerge pull request #1 from andrzej-kaczmarek/dev
Andrzej Kaczmarek [Fri, 8 Sep 2017 08:40:33 +0000 (10:40 +0200)] 
Merge pull request #1 from andrzej-kaczmarek/dev

Initial rework to make NFFS more generic

15 months agoAdd configuration specific to Zephyr OS 1/head
Andrzej Kaczmarek [Thu, 7 Sep 2017 14:10:51 +0000 (16:10 +0200)] 
Add configuration specific to Zephyr OS

15 months agoInitial rework to make NFFS more generic
Andrzej Kaczmarek [Thu, 7 Sep 2017 13:58:34 +0000 (15:58 +0200)] 
Initial rework to make NFFS more generic

This patch starts reorganization of NFFS to make it more generic, i.e.
easier to port for other OS-es.

* introduce glue layer to abstract memory and flash operations
* remove fs specific stuff from "core" implementation (this will be part
  of OS ports)
* make rich public API - basically anything exposed in nffs_priv.h is
  a public API for now since OS ports will use this to implement fs
  stuff; long term this will need some cleanup.

Eventually, this will be a repository compatible with Mynewt which can
be used there directly with ports available for Zephyr and possibly
other OS-es. It should be then possible to build "core" code unmodified
on any OS with glue layer implemented.

15 months agoInitial commit based on content of fs/nffs from mynewt-core
Szymon Janc [Tue, 5 Sep 2017 18:03:47 +0000 (20:03 +0200)] 
Initial commit based on content of fs/nffs from mynewt-core