Skip to content

Commit 985bca0

Browse files
committed
Squashed 'littlefs/' changes from d01280e..630a0d8
630a0d8 Merge pull request #1050 from littlefs-project/devel 3d03864 Bumped minor version to v2.10 b8e4433 Merge pull request #1052 from wangdongustc/assert_null_sync dae656a Fix prettyasserts.py for pointer asserts 469c863 Assert on NULL IO function 215613e gha: Fixed x86-only statuses 2fcecc8 Merge pull request #1046 from littlefs-project/fix-trailing-slashes 78f9a5f Merge pull request #1038 from littlefs-project/link-ramcrc32bd-ramrsbd 83fe41b Merge pull request #1031 from littlefs-project/fix-enospc-issues d7a9119 Merge pull request #1027 from littlefs-project/fix-seek-overflow-ub 2ba4280 Merge pull request #997 from littlefs-project/fix-trace-format-again c961e1f Merge pull request #1004 from yamt/user-define-header bd01a4c Merge pull request #1013 from wdfk-prog/feature_2.9.3 999ef66 paths: Changed CREAT with a trailing slash to return NOTDIR b735c8f paths: Added tests over NOENT + trailing slash/dot 3094705 paths: Extended tests to cover open with CREAT/EXCL 80ca1ea paths: Reject empty paths 815f0d8 paths: Fixed dots followed by dotdots dc92dec paths: Reject dotdots above root a603507 paths: Fixed/doc trailing slash/dot POSIX incompatibilities 232e736 paths: Added trailing slashes and dots tests 0de0389 paths: Reworked test_paths to cover more corner cases 1407db9 Added links to ramcrc32bd and ramrsbd ea431bd Added some checks that metadata_max makes sense 2d62d2f Fixed metadata_max==prog_size commit->end calculation 1f82c0f Added some metadata_max testing a2c2e49 Write the detect cycles function as a function to optimize code abaec45 Fixed seek undefined behavior on signed integer overflow f1c430e Added some tests around seek integer overflow/underflow 4a845be Rename LFS_USER_DEFINES to LFS_DEFINES e1636d0 Add an alternative way to override LFS_MALLOC etc b78afe2 Merge pull request #1026 from yamt/update-gh-actions 798073c gha: Dropped minor/patch version pinning of actions 7db9e16 gha: Switched to standard da for cross-workflow downloads 2c4b262 gha: Merge artifacts on download 72a4b57 gha: Make the artifact names unique 6e72698 gha: Update github actions to the latest versions ac20758 Fixed some more LFS_TRACE format specifiers git-subtree-dir: littlefs git-subtree-split: 630a0d87c23900c05ed5906db461ab91d3cc2c27
1 parent 74006f3 commit 985bca0

File tree

15 files changed

+7706
-374
lines changed

15 files changed

+7706
-374
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
github.event.workflow_run.head_sha == github.sha}}
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424
with:
2525
ref: ${{github.event.workflow_run.head_sha}}
2626
# need workflow access since we push branches
@@ -30,26 +30,29 @@ jobs:
3030
fetch-depth: 0
3131

3232
# try to get results from tests
33-
- uses: dawidd6/action-download-artifact@v2
33+
- uses: actions/download-artifact@v4
3434
continue-on-error: true
3535
with:
36-
workflow: ${{github.event.workflow_run.name}}
37-
run_id: ${{github.event.workflow_run.id}}
38-
name: sizes
36+
github-token: ${{secrets.GITHUB_TOKEN}}
37+
run-id: ${{github.event.workflow_run.id}}
38+
pattern: '{sizes,sizes-*}'
39+
merge-multiple: true
3940
path: sizes
40-
- uses: dawidd6/action-download-artifact@v2
41+
- uses: actions/download-artifact@v4
4142
continue-on-error: true
4243
with:
43-
workflow: ${{github.event.workflow_run.name}}
44-
run_id: ${{github.event.workflow_run.id}}
45-
name: cov
44+
github-token: ${{secrets.GITHUB_TOKEN}}
45+
run-id: ${{github.event.workflow_run.id}}
46+
pattern: '{cov,cov-*}'
47+
merge-multiple: true
4648
path: cov
47-
- uses: dawidd6/action-download-artifact@v2
49+
- uses: actions/download-artifact@v4
4850
continue-on-error: true
4951
with:
50-
workflow: ${{github.event.workflow_run.name}}
51-
run_id: ${{github.event.workflow_run.id}}
52-
name: bench
52+
github-token: ${{secrets.GITHUB_TOKEN}}
53+
run-id: ${{github.event.workflow_run.id}}
54+
pattern: '{bench,bench-*}'
55+
merge-multiple: true
5356
path: bench
5457

5558
- name: find-version

.github/workflows/status.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
status:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: dawidd6/action-download-artifact@v2
16+
- uses: actions/download-artifact@v4
1717
continue-on-error: true
1818
with:
19-
workflow: ${{github.event.workflow_run.name}}
20-
run_id: ${{github.event.workflow_run.id}}
21-
name: status
19+
github-token: ${{secrets.GITHUB_TOKEN}}
20+
run-id: ${{github.event.workflow_run.id}}
21+
pattern: '{status,status-*}'
22+
merge-multiple: true
2223
path: status
2324
- name: update-status
2425
continue-on-error: true
@@ -67,12 +68,13 @@ jobs:
6768

6869
steps:
6970
# generated comment?
70-
- uses: dawidd6/action-download-artifact@v2
71+
- uses: actions/download-artifact@v4
7172
continue-on-error: true
7273
with:
73-
workflow: ${{github.event.workflow_run.name}}
74-
run_id: ${{github.event.workflow_run.id}}
75-
name: comment
74+
github-token: ${{secrets.GITHUB_TOKEN}}
75+
run-id: ${{github.event.workflow_run.id}}
76+
pattern: '{comment,comment-*}'
77+
merge-multiple: true
7678
path: comment
7779
- name: update-comment
7880
continue-on-error: true

.github/workflows/test.yml

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
arch: [x86_64, thumb, mips, powerpc]
2222

2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525
- name: install
2626
run: |
2727
# need a few things
@@ -235,9 +235,9 @@ jobs:
235235
236236
# create size statuses
237237
- name: upload-sizes
238-
uses: actions/upload-artifact@v2
238+
uses: actions/upload-artifact@v4
239239
with:
240-
name: sizes
240+
name: sizes-${{matrix.arch}}
241241
path: sizes
242242
- name: status-sizes
243243
run: |
@@ -273,16 +273,16 @@ jobs:
273273
}' | tee status/$(basename $f .csv).json
274274
done
275275
- name: upload-status-sizes
276-
uses: actions/upload-artifact@v2
276+
uses: actions/upload-artifact@v4
277277
with:
278-
name: status
278+
name: status-sizes-${{matrix.arch}}
279279
path: status
280280
retention-days: 1
281281

282282
# create cov statuses
283283
- name: upload-cov
284284
if: ${{matrix.arch == 'x86_64'}}
285-
uses: actions/upload-artifact@v2
285+
uses: actions/upload-artifact@v4
286286
with:
287287
name: cov
288288
path: cov
@@ -317,11 +317,11 @@ jobs:
317317
target_step: env.STEP,
318318
}' | tee status/$(basename $f .csv)-$s.json
319319
done
320-
- name: upload-status-sizes
320+
- name: upload-status-cov
321321
if: ${{matrix.arch == 'x86_64'}}
322-
uses: actions/upload-artifact@v2
322+
uses: actions/upload-artifact@v4
323323
with:
324-
name: status
324+
name: status-cov
325325
path: status
326326
retention-days: 1
327327

@@ -336,7 +336,7 @@ jobs:
336336
pls: [1, 2]
337337

338338
steps:
339-
- uses: actions/checkout@v2
339+
- uses: actions/checkout@v4
340340
- name: install
341341
run: |
342342
# need a few things
@@ -361,7 +361,7 @@ jobs:
361361
test-no-intrinsics:
362362
runs-on: ubuntu-latest
363363
steps:
364-
- uses: actions/checkout@v2
364+
- uses: actions/checkout@v4
365365
- name: install
366366
run: |
367367
# need a few things
@@ -378,7 +378,7 @@ jobs:
378378
test-multiversion:
379379
runs-on: ubuntu-latest
380380
steps:
381-
- uses: actions/checkout@v2
381+
- uses: actions/checkout@v4
382382
- name: install
383383
run: |
384384
# need a few things
@@ -395,7 +395,7 @@ jobs:
395395
test-lfs2_0:
396396
runs-on: ubuntu-latest
397397
steps:
398-
- uses: actions/checkout@v2
398+
- uses: actions/checkout@v4
399399
- name: install
400400
run: |
401401
# need a few things
@@ -414,7 +414,7 @@ jobs:
414414
test-valgrind:
415415
runs-on: ubuntu-latest
416416
steps:
417-
- uses: actions/checkout@v2
417+
- uses: actions/checkout@v4
418418
- name: install
419419
run: |
420420
# need a few things
@@ -436,7 +436,7 @@ jobs:
436436
test-clang:
437437
runs-on: ubuntu-latest
438438
steps:
439-
- uses: actions/checkout@v2
439+
- uses: actions/checkout@v4
440440
- name: install
441441
run: |
442442
# need a few things
@@ -459,7 +459,7 @@ jobs:
459459
bench:
460460
runs-on: ubuntu-latest
461461
steps:
462-
- uses: actions/checkout@v2
462+
- uses: actions/checkout@v4
463463
- name: install
464464
run: |
465465
# need a few things
@@ -491,7 +491,7 @@ jobs:
491491
492492
# create bench statuses
493493
- name: upload-bench
494-
uses: actions/upload-artifact@v2
494+
uses: actions/upload-artifact@v4
495495
with:
496496
name: bench
497497
path: bench
@@ -525,20 +525,20 @@ jobs:
525525
}' | tee status/$(basename $f .csv)-$s.json
526526
done
527527
- name: upload-status-bench
528-
uses: actions/upload-artifact@v2
528+
uses: actions/upload-artifact@v4
529529
with:
530-
name: status
530+
name: status-bench
531531
path: status
532532
retention-days: 1
533533

534534
# run compatibility tests using the current master as the previous version
535535
test-compat:
536536
runs-on: ubuntu-latest
537537
steps:
538-
- uses: actions/checkout@v2
538+
- uses: actions/checkout@v4
539539
if: ${{github.event_name == 'pull_request'}}
540540
# checkout the current pr target into lfsp
541-
- uses: actions/checkout@v2
541+
- uses: actions/checkout@v4
542542
if: ${{github.event_name == 'pull_request'}}
543543
with:
544544
ref: ${{github.event.pull_request.base.ref}}
@@ -572,7 +572,7 @@ jobs:
572572
runs-on: ubuntu-latest
573573
if: ${{!endsWith(github.ref, '-prefix')}}
574574
steps:
575-
- uses: actions/checkout@v2
575+
- uses: actions/checkout@v4
576576
- name: install
577577
run: |
578578
# need a few things
@@ -582,7 +582,7 @@ jobs:
582582
gcc --version
583583
python3 --version
584584
fusermount -V
585-
- uses: actions/checkout@v2
585+
- uses: actions/checkout@v4
586586
with:
587587
repository: littlefs-project/littlefs-fuse
588588
ref: v2
@@ -622,7 +622,7 @@ jobs:
622622
runs-on: ubuntu-latest
623623
if: ${{!endsWith(github.ref, '-prefix')}}
624624
steps:
625-
- uses: actions/checkout@v2
625+
- uses: actions/checkout@v4
626626
- name: install
627627
run: |
628628
# need a few things
@@ -632,12 +632,12 @@ jobs:
632632
gcc --version
633633
python3 --version
634634
fusermount -V
635-
- uses: actions/checkout@v2
635+
- uses: actions/checkout@v4
636636
with:
637637
repository: littlefs-project/littlefs-fuse
638638
ref: v2
639639
path: v2
640-
- uses: actions/checkout@v2
640+
- uses: actions/checkout@v4
641641
with:
642642
repository: littlefs-project/littlefs-fuse
643643
ref: v1
@@ -694,7 +694,7 @@ jobs:
694694
runs-on: ubuntu-latest
695695
needs: [test, bench]
696696
steps:
697-
- uses: actions/checkout@v2
697+
- uses: actions/checkout@v4
698698
if: ${{github.event_name == 'pull_request'}}
699699
- name: install
700700
if: ${{github.event_name == 'pull_request'}}
@@ -704,23 +704,26 @@ jobs:
704704
pip3 install toml
705705
gcc --version
706706
python3 --version
707-
- uses: actions/download-artifact@v2
707+
- uses: actions/download-artifact@v4
708708
if: ${{github.event_name == 'pull_request'}}
709709
continue-on-error: true
710710
with:
711-
name: sizes
711+
pattern: '{sizes,sizes-*}'
712+
merge-multiple: true
712713
path: sizes
713-
- uses: actions/download-artifact@v2
714+
- uses: actions/download-artifact@v4
714715
if: ${{github.event_name == 'pull_request'}}
715716
continue-on-error: true
716717
with:
717-
name: cov
718+
pattern: '{cov,cov-*}'
719+
merge-multiple: true
718720
path: cov
719-
- uses: actions/download-artifact@v2
721+
- uses: actions/download-artifact@v4
720722
if: ${{github.event_name == 'pull_request'}}
721723
continue-on-error: true
722724
with:
723-
name: bench
725+
pattern: '{bench,bench-*}'
726+
merge-multiple: true
724727
path: bench
725728

726729
# try to find results from tests
@@ -862,7 +865,7 @@ jobs:
862865
body: $comment,
863866
}' | tee comment/comment.json
864867
- name: upload-comment
865-
uses: actions/upload-artifact@v2
868+
uses: actions/upload-artifact@v4
866869
with:
867870
name: comment
868871
path: comment

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ License Identifiers that are here available: http://spdx.org/licenses/
251251
filesystem over USB. Allows mounting littlefs on a host PC without additional
252252
drivers.
253253

254+
- [ramcrc32bd] - An example block device using littlefs's 32-bit CRC for
255+
error-correction.
256+
257+
- [ramrsbd] - An example block device using Reed-Solomon codes for
258+
error-correction.
259+
254260
- [Mbed OS] - The easiest way to get started with littlefs is to jump into Mbed
255261
which already has block device drivers for most forms of embedded storage.
256262
littlefs is available in Mbed OS as the [LittleFileSystem] class.
@@ -281,6 +287,8 @@ License Identifiers that are here available: http://spdx.org/licenses/
281287
[mklfs]: https://github.com/whitecatboard/Lua-RTOS-ESP32/tree/master/components/mklfs/src
282288
[mklittlefs]: https://github.com/earlephilhower/mklittlefs
283289
[pico-littlefs-usb]: https://github.com/oyama/pico-littlefs-usb
290+
[ramcrc32bd]: https://github.com/geky/ramcrc32bd
291+
[ramrsbd]: https://github.com/geky/ramrsbd
284292
[Mbed OS]: https://github.com/armmbed/mbed-os
285293
[LittleFileSystem]: https://os.mbed.com/docs/mbed-os/latest/apis/littlefilesystem.html
286294
[SPIFFS]: https://github.com/pellepl/spiffs

0 commit comments

Comments
 (0)