Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
64f70f5
lfs_bd_cmp() compares more bytes at one time
Mar 13, 2020
6d0ec5e
Added littlefs-python to the related projects section
jrast Apr 13, 2020
87a2cb0
Fix assert
sgupta20 Aug 18, 2020
10ac6b9
add thread safe wrappers
renesas-billgesner Sep 17, 2020
8e6826c
Add LFS_READYONLY define, to allow smaller builds providing read-only…
maximevince Oct 28, 2020
4bd653d
Assert that file/dir struct is not reused in lfs_file_opencfg/lfs_dir…
Jun 17, 2020
6303558
Use LFS_O_RDWR instead of magic number in lfs_file_* asserts
Jun 17, 2020
480cdd9
Fixed incorrect modulus in lfs_alloc_reset
geky Nov 14, 2020
1ae4b36
Removed unnecessary randomization of offsets in lfs_alloc_reset
geky Nov 20, 2020
f215027
Switched to CRC as seed collection function instead of xor
geky Nov 20, 2020
d04c139
Fixed allocation-eviction issue when erase state is multiple of block…
geky Nov 22, 2020
0ea2871
Fixed typo in scripts/readtree.py
geky Nov 22, 2020
0aba71d
Fixed single unchecked bit during commit verification
geky Nov 22, 2020
b8dcf10
Changed lfs_dir_alloc to maximize block cycles for new metadata pairs
geky Nov 29, 2020
817ef02
Merge pull request #412 from jrast/patch-3
geky Dec 4, 2020
1dc6ae9
Merge pull request #486 from littlefs-project/fix-assert
geky Dec 4, 2020
e273a82
Merge pull request #487 from littlefs-project/fix-alloc-reset-modulus
geky Dec 4, 2020
6627206
Merge pull request #395 from gmpy/improve-write-performance
geky Dec 4, 2020
008ebc3
Add lfs_mlist_append/remove helper
Nov 17, 2020
584eb26
Merge pull request #443 from NoahGorny/add-already-opened-assert
geky Dec 4, 2020
754b4c3
Squash of LFS_READONLY cleanup
maximevince Nov 17, 2020
2efebf8
Added read-only build+size reporting to CI
geky Nov 22, 2020
b9fa33f
Merge pull request #480 from maximevince/master
geky Dec 4, 2020
d0f055d
Squash of thread-safe PR cleanup
renesas-billgesner Oct 1, 2020
fc6988c
make raw functions static. formatting tweaks
renesas-billgesner Nov 20, 2020
00a9ba7
Tweaked thread-safe implementation
geky Nov 28, 2020
45afded
Moved LFS_TRACE calls to API wrapper functions
geky Nov 28, 2020
a99a93f
Added thread-safe build+size reporting to CI
geky Nov 28, 2020
ce425a5
Merge pull request #470 from renesas/SWFLEX-1517-littlefs-thread-safe…
geky Dec 4, 2020
7388b29
Deprecate LFS_F_OPENED and use lfs_mlist_isused instead
Nov 17, 2020
2bb5234
Moved lfs_mlist_isopen checks into the API wrappers
geky Dec 4, 2020
5783eea
Merge pull request #490 from littlefs-project/fix-alloc-eviction
geky Dec 4, 2020
288a5cb
Bumped minor version to v2.3
geky Dec 4, 2020
6a70127
Renamed internal lfs_*raw -> lfs_raw* functions
geky Dec 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,38 @@ jobs:
script:
- make test TFLAGS+="-k --valgrind"

# test compilation in read-only mode
- stage: test
env:
- NAME=littlefs-readonly
- CC="arm-linux-gnueabi-gcc --static -mthumb"
- CFLAGS="-Werror -DLFS_READONLY"
if: branch !~ -prefix$
install:
- *install-common
- sudo apt-get install
gcc-arm-linux-gnueabi
libc6-dev-armel-cross
- arm-linux-gnueabi-gcc --version
# report-size will compile littlefs and report the size
script: [*report-size]

# test compilation in thread-safe mode
- stage: test
env:
- NAME=littlefs-threadsafe
- CC="arm-linux-gnueabi-gcc --static -mthumb"
- CFLAGS="-Werror -DLFS_THREADSAFE"
if: branch !~ -prefix$
install:
- *install-common
- sudo apt-get install
gcc-arm-linux-gnueabi
libc6-dev-armel-cross
- arm-linux-gnueabi-gcc --version
# report-size will compile littlefs and report the size
script: [*report-size]

# self-host with littlefs-fuse for fuzz test
- stage: test
env:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ License Identifiers that are here available: http://spdx.org/licenses/
- [littlefs-js] - A javascript wrapper for littlefs. I'm not sure why you would
want this, but it is handy for demos. You can see it in action
[here][littlefs-js-demo].

- [littlefs-python] - A Python wrapper for littlefs. The project allows you
to create images of the filesystem on your PC. Check if littlefs will fit
your needs, create images for a later download to the target memory or
inspect the content of a binary image of the target memory.

- [mklfs] - A command line tool built by the [Lua RTOS] guys for making
littlefs images from a host PC. Supports Windows, Mac OS, and Linux.
Expand Down Expand Up @@ -250,3 +255,4 @@ License Identifiers that are here available: http://spdx.org/licenses/
[LittleFileSystem]: https://os.mbed.com/docs/mbed-os/v5.12/apis/littlefilesystem.html
[SPIFFS]: https://github.com/pellepl/spiffs
[Dhara]: https://github.com/dlbeer/dhara
[littlefs-python]: https://pypi.org/project/littlefs-python/
4 changes: 2 additions & 2 deletions bd/lfs_testbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block,
bd->power_cycles -= 1;
if (bd->power_cycles == 0) {
// sync to make sure we persist the last changes
assert(lfs_testbd_rawsync(cfg) == 0);
LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
// simulate power loss
exit(33);
}
Expand Down Expand Up @@ -254,7 +254,7 @@ int lfs_testbd_erase(const struct lfs_config *cfg, lfs_block_t block) {
bd->power_cycles -= 1;
if (bd->power_cycles == 0) {
// sync to make sure we persist the last changes
assert(lfs_testbd_rawsync(cfg) == 0);
LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
// simulate power loss
exit(33);
}
Expand Down
Loading