Skip to content

Commit 1a59954

Browse files
authored
Merge pull request #495 from littlefs-project/devel
Minor release: v2.3
2 parents 4c9146e + 6a70127 commit 1a59954

File tree

6 files changed

+890
-341
lines changed

6 files changed

+890
-341
lines changed

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,38 @@ jobs:
208208
script:
209209
- make test TFLAGS+="-k --valgrind"
210210

211+
# test compilation in read-only mode
212+
- stage: test
213+
env:
214+
- NAME=littlefs-readonly
215+
- CC="arm-linux-gnueabi-gcc --static -mthumb"
216+
- CFLAGS="-Werror -DLFS_READONLY"
217+
if: branch !~ -prefix$
218+
install:
219+
- *install-common
220+
- sudo apt-get install
221+
gcc-arm-linux-gnueabi
222+
libc6-dev-armel-cross
223+
- arm-linux-gnueabi-gcc --version
224+
# report-size will compile littlefs and report the size
225+
script: [*report-size]
226+
227+
# test compilation in thread-safe mode
228+
- stage: test
229+
env:
230+
- NAME=littlefs-threadsafe
231+
- CC="arm-linux-gnueabi-gcc --static -mthumb"
232+
- CFLAGS="-Werror -DLFS_THREADSAFE"
233+
if: branch !~ -prefix$
234+
install:
235+
- *install-common
236+
- sudo apt-get install
237+
gcc-arm-linux-gnueabi
238+
libc6-dev-armel-cross
239+
- arm-linux-gnueabi-gcc --version
240+
# report-size will compile littlefs and report the size
241+
script: [*report-size]
242+
211243
# self-host with littlefs-fuse for fuzz test
212244
- stage: test
213245
env:

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ License Identifiers that are here available: http://spdx.org/licenses/
221221
- [littlefs-js] - A javascript wrapper for littlefs. I'm not sure why you would
222222
want this, but it is handy for demos. You can see it in action
223223
[here][littlefs-js-demo].
224+
225+
- [littlefs-python] - A Python wrapper for littlefs. The project allows you
226+
to create images of the filesystem on your PC. Check if littlefs will fit
227+
your needs, create images for a later download to the target memory or
228+
inspect the content of a binary image of the target memory.
224229

225230
- [mklfs] - A command line tool built by the [Lua RTOS] guys for making
226231
littlefs images from a host PC. Supports Windows, Mac OS, and Linux.
@@ -250,3 +255,4 @@ License Identifiers that are here available: http://spdx.org/licenses/
250255
[LittleFileSystem]: https://os.mbed.com/docs/mbed-os/v5.12/apis/littlefilesystem.html
251256
[SPIFFS]: https://github.com/pellepl/spiffs
252257
[Dhara]: https://github.com/dlbeer/dhara
258+
[littlefs-python]: https://pypi.org/project/littlefs-python/

bd/lfs_testbd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ int lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block,
207207
bd->power_cycles -= 1;
208208
if (bd->power_cycles == 0) {
209209
// sync to make sure we persist the last changes
210-
assert(lfs_testbd_rawsync(cfg) == 0);
210+
LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
211211
// simulate power loss
212212
exit(33);
213213
}
@@ -254,7 +254,7 @@ int lfs_testbd_erase(const struct lfs_config *cfg, lfs_block_t block) {
254254
bd->power_cycles -= 1;
255255
if (bd->power_cycles == 0) {
256256
// sync to make sure we persist the last changes
257-
assert(lfs_testbd_rawsync(cfg) == 0);
257+
LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0);
258258
// simulate power loss
259259
exit(33);
260260
}

0 commit comments

Comments
 (0)