littlefs-python 0.14.0__tar.gz → 0.15.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.github/workflows/deploy.yml +25 -15
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.github/workflows/run-tests.yml +3 -3
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/PKG-INFO +2 -1
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/README.rst +1 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/Makefile +1 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/README.md +6 -1
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/lfs.c +8 -5
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/lfs.c +451 -292
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/lfs.pxd +3 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs_python.egg-info/PKG-INFO +2 -1
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.gitattributes +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.github/dependabot.yml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.gitignore +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.gitmodules +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.pre-commit-config.yaml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/.readthedocs.yml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/LICENSE +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/MANIFEST.in +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/ci/build-wheels.sh +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/ci/download_release_files.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/Makefile +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/api/index.rst +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/cli.rst +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/conf.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/doc8.ini +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/examples/index.rst +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/index.rst +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/make.bat +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/requirements.txt +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/docs/usage.rst +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/examples/mkfsimg.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/examples/walk.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/.git +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/.gitattributes +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/.github/workflows/post-release.yml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/.github/workflows/release.yml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/.github/workflows/status.yml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/.github/workflows/test.yml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/.gitignore +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/DESIGN.md +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/LICENSE.md +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/SPEC.md +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/bd/lfs_emubd.c +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/bd/lfs_emubd.h +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/bd/lfs_filebd.c +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/bd/lfs_filebd.h +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/bd/lfs_rambd.c +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/bd/lfs_rambd.h +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/benches/bench_dir.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/benches/bench_file.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/benches/bench_superblock.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/lfs.h +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/lfs_util.c +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/lfs_util.h +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/runners/bench_runner.c +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/runners/bench_runner.h +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/runners/test_runner.c +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/runners/test_runner.h +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/bench.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/changeprefix.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/code.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/cov.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/data.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/perf.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/perfbd.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/plot.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/plotmpl.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/prettyasserts.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/readblock.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/readmdir.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/readtree.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/stack.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/structs.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/summary.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/tailpipe.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/teepipe.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/test.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/tracebd.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/scripts/watch.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_alloc.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_attrs.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_badblocks.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_bd.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_compat.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_dirs.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_entries.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_evil.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_exhaustion.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_files.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_interspersed.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_move.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_orphans.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_paths.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_powerloss.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_relocations.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_seek.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_shrink.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_superblocks.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/littlefs/tests/test_truncate.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/mypy.ini +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/pyproject.toml +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/requirements.txt +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/setup.cfg +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/setup.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/__init__.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/__main__.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/context.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/errors.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/lfs.pyi +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/lfs.pyx +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs/py.typed +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs_python.egg-info/SOURCES.txt +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs_python.egg-info/dependency_links.txt +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs_python.egg-info/entry_points.txt +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs_python.egg-info/not-zip-safe +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs_python.egg-info/requires.txt +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/src/littlefs_python.egg-info/top_level.txt +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/lfs/conftest.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/lfs/test_dir_functions.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/lfs/test_file_functions.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/lfs/test_fs_functions.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_attr.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_block_count.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_directories.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_files.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_grow.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_multiversion.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_name_max.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_remove_rename.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_version.py +0 -0
- {littlefs_python-0.14.0 → littlefs_python-0.15.0}/test/test_walk.py +0 -0
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
name: Build and Deploy Package
|
|
2
2
|
|
|
3
|
-
on:
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
upload_to_pypi:
|
|
7
|
+
description: 'Upload to PyPI after building'
|
|
8
|
+
required: true
|
|
9
|
+
default: false
|
|
10
|
+
type: boolean
|
|
4
11
|
|
|
5
12
|
jobs:
|
|
6
13
|
build_wheels:
|
|
@@ -11,14 +18,15 @@ jobs:
|
|
|
11
18
|
os: [ubuntu-22.04, macos-13, windows-latest]
|
|
12
19
|
|
|
13
20
|
env:
|
|
14
|
-
CIBW_BUILD: "
|
|
15
|
-
CIBW_SKIP: "
|
|
21
|
+
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
|
|
22
|
+
CIBW_SKIP: "*-win_arm64 *-musllinux_aarch64"
|
|
16
23
|
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64"
|
|
17
24
|
|
|
18
25
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
26
|
+
- uses: actions/checkout@v5
|
|
20
27
|
with:
|
|
21
28
|
submodules: "recursive"
|
|
29
|
+
fetch-depth: 0
|
|
22
30
|
|
|
23
31
|
- name: Setup QEMU # Needed to build aarch64 wheels
|
|
24
32
|
if: runner.os == 'Linux'
|
|
@@ -27,9 +35,9 @@ jobs:
|
|
|
27
35
|
platforms: all
|
|
28
36
|
|
|
29
37
|
- name: Build wheels
|
|
30
|
-
uses: pypa/cibuildwheel@
|
|
38
|
+
uses: pypa/cibuildwheel@v3.2.1
|
|
31
39
|
|
|
32
|
-
- uses: actions/upload-artifact@
|
|
40
|
+
- uses: actions/upload-artifact@v5
|
|
33
41
|
with:
|
|
34
42
|
name: wheels-${{ matrix.os }}
|
|
35
43
|
path: ./wheelhouse/*.whl
|
|
@@ -43,15 +51,16 @@ jobs:
|
|
|
43
51
|
cibw_archs: ["arm64"]
|
|
44
52
|
|
|
45
53
|
steps:
|
|
46
|
-
- uses: actions/checkout@
|
|
54
|
+
- uses: actions/checkout@v5
|
|
47
55
|
with:
|
|
48
56
|
submodules: "recursive"
|
|
57
|
+
fetch-depth: 0
|
|
49
58
|
|
|
50
59
|
- name: Build wheels
|
|
51
|
-
uses: pypa/cibuildwheel@
|
|
60
|
+
uses: pypa/cibuildwheel@v3.2.1
|
|
52
61
|
env:
|
|
53
62
|
CIBW_BUILD: ${{ matrix.cibw_build }}
|
|
54
|
-
CIBW_SKIP: "
|
|
63
|
+
CIBW_SKIP: "pp*"
|
|
55
64
|
CIBW_ARCHS: ${{ matrix.cibw_archs }}
|
|
56
65
|
CIBW_REPAIR_WHEEL_COMMAND: |
|
|
57
66
|
echo "Target delocate archs: {delocate_archs}"
|
|
@@ -75,7 +84,7 @@ jobs:
|
|
|
75
84
|
delocate-listdeps --all {dest_dir}/$WHEEL_SIMPLE_FILENAME
|
|
76
85
|
|
|
77
86
|
echo "DONE."
|
|
78
|
-
- uses: actions/upload-artifact@
|
|
87
|
+
- uses: actions/upload-artifact@v5
|
|
79
88
|
with:
|
|
80
89
|
name: wheels-macos-arm64
|
|
81
90
|
path: ./wheelhouse/*.whl
|
|
@@ -84,16 +93,17 @@ jobs:
|
|
|
84
93
|
name: Build source distribution
|
|
85
94
|
runs-on: ubuntu-22.04
|
|
86
95
|
steps:
|
|
87
|
-
- uses: actions/checkout@
|
|
96
|
+
- uses: actions/checkout@v5
|
|
88
97
|
with:
|
|
89
98
|
submodules: "recursive"
|
|
99
|
+
fetch-depth: 0
|
|
90
100
|
|
|
91
101
|
- name: Build sdist
|
|
92
102
|
run: |
|
|
93
103
|
pip install build
|
|
94
104
|
python -m build . --sdist
|
|
95
105
|
|
|
96
|
-
- uses: actions/upload-artifact@
|
|
106
|
+
- uses: actions/upload-artifact@v5
|
|
97
107
|
with:
|
|
98
108
|
name: wheels-sdist
|
|
99
109
|
path: dist/*.tar.gz
|
|
@@ -101,15 +111,15 @@ jobs:
|
|
|
101
111
|
upload_pypi:
|
|
102
112
|
needs: [build_wheels, build_wheels_macos_arm64, build_sdist]
|
|
103
113
|
runs-on: ubuntu-22.04
|
|
104
|
-
|
|
114
|
+
if: ${{ inputs.upload_to_pypi }}
|
|
105
115
|
steps:
|
|
106
|
-
- uses: actions/download-artifact@
|
|
116
|
+
- uses: actions/download-artifact@v6
|
|
107
117
|
with:
|
|
108
118
|
path: dist
|
|
109
119
|
pattern: wheels-*
|
|
110
120
|
merge-multiple: true
|
|
111
121
|
|
|
112
|
-
- uses: pypa/gh-action-pypi-publish@v1.
|
|
122
|
+
- uses: pypa/gh-action-pypi-publish@v1.13.0
|
|
113
123
|
with:
|
|
114
124
|
user: __token__
|
|
115
125
|
password: ${{ secrets.pypi_api_token }}
|
|
@@ -15,14 +15,14 @@ jobs:
|
|
|
15
15
|
strategy:
|
|
16
16
|
matrix:
|
|
17
17
|
os: [ubuntu-22.04, macos-13, windows-latest]
|
|
18
|
-
python-version: [3.
|
|
18
|
+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v5
|
|
22
22
|
with:
|
|
23
23
|
submodules: "recursive"
|
|
24
24
|
- name: Set up Python ${{ matrix.python-version }}
|
|
25
|
-
uses: actions/setup-python@
|
|
25
|
+
uses: actions/setup-python@v6
|
|
26
26
|
with:
|
|
27
27
|
python-version: ${{ matrix.python-version }}
|
|
28
28
|
- name: Install dependencies
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: littlefs-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.0
|
|
4
4
|
Summary: A python wrapper for littlefs
|
|
5
5
|
Home-page: https://github.com/jrast/littlefs-python
|
|
6
6
|
Author: Jürg Rast
|
|
@@ -103,6 +103,7 @@ from scratch the latest version is recommended.
|
|
|
103
103
|
.. csv-table::
|
|
104
104
|
:header: "LittleFS Version", "Package Version", "LittleFS File System Version"
|
|
105
105
|
|
|
106
|
+
2.11.2, v0.15.X, 2.0 / 2.1 [#f1]_
|
|
106
107
|
2.11.0, v0.14.X, 2.0 / 2.1 [#f1]_
|
|
107
108
|
2.10.0, v0.13.X, 2.0 / 2.1 [#f1]_
|
|
108
109
|
2.9.0, v0.12.X v0.11.X, 2.0 / 2.1 [#f1]_
|
|
@@ -70,6 +70,7 @@ from scratch the latest version is recommended.
|
|
|
70
70
|
.. csv-table::
|
|
71
71
|
:header: "LittleFS Version", "Package Version", "LittleFS File System Version"
|
|
72
72
|
|
|
73
|
+
2.11.2, v0.15.X, 2.0 / 2.1 [#f1]_
|
|
73
74
|
2.11.0, v0.14.X, 2.0 / 2.1 [#f1]_
|
|
74
75
|
2.10.0, v0.13.X, 2.0 / 2.1 [#f1]_
|
|
75
76
|
2.9.0, v0.12.X v0.11.X, 2.0 / 2.1 [#f1]_
|
|
@@ -267,7 +267,11 @@ License Identifiers that are here available: http://spdx.org/licenses/
|
|
|
267
267
|
to create images of the filesystem on your PC. Check if littlefs will fit
|
|
268
268
|
your needs, create images for a later download to the target memory or
|
|
269
269
|
inspect the content of a binary image of the target memory.
|
|
270
|
-
|
|
270
|
+
|
|
271
|
+
- [littlefs-toy] - A command-line tool for creating and working with littlefs
|
|
272
|
+
images. Uses syntax similar to tar command for ease of use. Supports working
|
|
273
|
+
on littlefs images embedded inside another file (firmware image, etc).
|
|
274
|
+
|
|
271
275
|
- [littlefs2-rust] - A Rust wrapper for littlefs. This project allows you
|
|
272
276
|
to use littlefs in a Rust-friendly API, reaping the benefits of Rust's memory
|
|
273
277
|
safety and other guarantees.
|
|
@@ -321,6 +325,7 @@ License Identifiers that are here available: http://spdx.org/licenses/
|
|
|
321
325
|
[littlefs-js]: https://github.com/geky/littlefs-js
|
|
322
326
|
[littlefs-js-demo]:http://littlefs.geky.net/demo.html
|
|
323
327
|
[littlefs-python]: https://pypi.org/project/littlefs-python/
|
|
328
|
+
[littlefs-toy]: https://github.com/tjko/littlefs-toy
|
|
324
329
|
[littlefs2-rust]: https://crates.io/crates/littlefs2
|
|
325
330
|
[nim-littlefs]: https://github.com/Graveflo/nim-littlefs
|
|
326
331
|
[chamelon]: https://github.com/yomimono/chamelon
|
|
@@ -93,6 +93,7 @@ static int lfs_bd_read(lfs_t *lfs,
|
|
|
93
93
|
// bypass cache?
|
|
94
94
|
diff = lfs_aligndown(diff, lfs->cfg->read_size);
|
|
95
95
|
int err = lfs->cfg->read(lfs->cfg, block, off, data, diff);
|
|
96
|
+
LFS_ASSERT(err <= 0);
|
|
96
97
|
if (err) {
|
|
97
98
|
return err;
|
|
98
99
|
}
|
|
@@ -739,6 +740,7 @@ static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir,
|
|
|
739
740
|
int err = lfs_bd_read(lfs,
|
|
740
741
|
NULL, &lfs->rcache, sizeof(ntag),
|
|
741
742
|
dir->pair[0], off, &ntag, sizeof(ntag));
|
|
743
|
+
LFS_ASSERT(err <= 0);
|
|
742
744
|
if (err) {
|
|
743
745
|
return err;
|
|
744
746
|
}
|
|
@@ -767,6 +769,7 @@ static lfs_stag_t lfs_dir_getslice(lfs_t *lfs, const lfs_mdir_t *dir,
|
|
|
767
769
|
err = lfs_bd_read(lfs,
|
|
768
770
|
NULL, &lfs->rcache, diff,
|
|
769
771
|
dir->pair[0], off+sizeof(tag)+goff, gbuffer, diff);
|
|
772
|
+
LFS_ASSERT(err <= 0);
|
|
770
773
|
if (err) {
|
|
771
774
|
return err;
|
|
772
775
|
}
|
|
@@ -828,9 +831,6 @@ static int lfs_dir_getread(lfs_t *lfs, const lfs_mdir_t *dir,
|
|
|
828
831
|
size -= diff;
|
|
829
832
|
continue;
|
|
830
833
|
}
|
|
831
|
-
|
|
832
|
-
// rcache takes priority
|
|
833
|
-
diff = lfs_min(diff, rcache->off-off);
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
// load to cache, first condition can no longer fail
|
|
@@ -1282,6 +1282,7 @@ static lfs_stag_t lfs_dir_fetchmatch(lfs_t *lfs,
|
|
|
1282
1282
|
if (err == LFS_ERR_CORRUPT) {
|
|
1283
1283
|
break;
|
|
1284
1284
|
}
|
|
1285
|
+
return err;
|
|
1285
1286
|
}
|
|
1286
1287
|
|
|
1287
1288
|
lfs_fcrc_fromle32(&fcrc);
|
|
@@ -2267,7 +2268,7 @@ static int lfs_dir_relocatingcommit(lfs_t *lfs, lfs_mdir_t *dir,
|
|
|
2267
2268
|
}
|
|
2268
2269
|
}
|
|
2269
2270
|
|
|
2270
|
-
if (dir->erased) {
|
|
2271
|
+
if (dir->erased && dir->count < 0xff) {
|
|
2271
2272
|
// try to commit
|
|
2272
2273
|
struct lfs_commit commit = {
|
|
2273
2274
|
.block = dir->pair[0],
|
|
@@ -5225,7 +5226,9 @@ static int lfs_fs_gc_(lfs_t *lfs) {
|
|
|
5225
5226
|
}
|
|
5226
5227
|
|
|
5227
5228
|
// try to populate the lookahead buffer, unless it's already full
|
|
5228
|
-
if (lfs->lookahead.size <
|
|
5229
|
+
if (lfs->lookahead.size < lfs_min(
|
|
5230
|
+
8 * lfs->cfg->lookahead_size,
|
|
5231
|
+
lfs->block_count)) {
|
|
5229
5232
|
err = lfs_alloc_scan(lfs);
|
|
5230
5233
|
if (err) {
|
|
5231
5234
|
return err;
|