Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8f9427d
Add value-range checks for user-definable macros
BrianPugh Oct 29, 2023
c531a5e
Replace erroneous LFS_FILE_MAX upper bound 4294967296 to 4294967295
BrianPugh Oct 30, 2023
a0c6c54
Added LFS_MALLOC/FREE, easier overrides for lfs_malloc/free
geky Dec 19, 2023
9a620c7
Added LFS_CRC, easier override for lfs_crc
geky Dec 19, 2023
7b68441
Renamed a number of internal block-allocator fields
geky Dec 19, 2023
1f9c3c0
Reworked the block allocator so the logic is hopefully simpler
geky Dec 20, 2023
b1b10c0
Relaxed lookahead buffer alignment
geky Dec 20, 2023
897b571
Changed CI to just run on ubuntu-latest
geky Dec 21, 2023
6056767
Relaxed alignment requirements for lfs_malloc
geky Jan 16, 2024
1fefcbb
Rearranged compile-time constant checks to live near lfs_init
geky Jan 17, 2024
6691718
Restricted LFS_FILE_MAX to signed 32-bits, <2^31, <=2147483647
geky Jan 17, 2024
4f32738
Fix return value of lfs_rename()
tomscii Jan 3, 2024
f522ed9
Added tests over rename type errors
geky Jan 17, 2024
1711bde
Merge pull request #886 from BrianPugh/macro-sanity-check
geky Jan 19, 2024
1195d60
Merge pull request #909 from littlefs-project/easy-util-defines
geky Jan 19, 2024
b5cd957
Extended lfs_fs_gc to compact metadata, compact_thresh
geky Dec 21, 2023
ed7bd05
Merge pull request #912 from littlefs-project/relaxed-lookahead
geky Jan 19, 2024
09972a1
Merge pull request #913 from littlefs-project/gc-compactions
geky Jan 19, 2024
8b8fd14
Added inline_max, to optionally limit the size of inlined files
geky Dec 21, 2023
13d7861
Merge pull request #914 from littlefs-project/inline-max
geky Jan 19, 2024
a8a0905
Merge pull request #916 from littlefs-project/ci-ubuntu-latest
geky Jan 19, 2024
ceb17a0
Merge pull request #917 from tomscii/fix_return_value_of_lfs_rename
geky Jan 19, 2024
a70870c
Renamed internal functions _raw* -> _*_
geky Dec 21, 2023
a3e1d12
Merge pull request #915 from littlefs-project/well-done
geky Jan 19, 2024
42910bc
Bumped minor version to v2.9
geky Jan 19, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaults:

jobs:
post-release:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
# trigger post-release in dependency repo, this indirection allows the
# dependency repo to be updated often without affecting this repo. At
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:

jobs:
release:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

# need to manually check for a couple things
# - tests passed?
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:
jobs:
# forward custom statuses
status:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: dawidd6/action-download-artifact@v2
continue-on-error: true
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:

# forward custom pr-comments
comment:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

# only run on success (we don't want garbage comments!)
if: ${{github.event.workflow_run.conclusion == 'success'}}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
# run tests
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:
#
# this grows exponentially, so it doesn't turn out to be that many
test-pls:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -359,7 +359,7 @@ jobs:

# run with LFS_NO_INTRINSICS to make sure that works
test-no-intrinsics:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
Expand All @@ -376,7 +376,7 @@ jobs:

# run LFS_MULTIVERSION tests
test-multiversion:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
Expand All @@ -393,7 +393,7 @@ jobs:

# run tests on the older version lfs2.0
test-lfs2_0:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
Expand All @@ -412,7 +412,7 @@ jobs:

# run under Valgrind to check for memory errors
test-valgrind:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
Expand All @@ -434,7 +434,7 @@ jobs:
# test that compilation is warning free under clang
# run with Clang, mostly to check for Clang-specific warnings
test-clang:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
Expand All @@ -457,7 +457,7 @@ jobs:
#
# note there's no real benefit to running these on multiple archs
bench:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
Expand Down Expand Up @@ -533,7 +533,7 @@ jobs:

# run compatibility tests using the current master as the previous version
test-compat:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{github.event_name == 'pull_request'}}
Expand Down Expand Up @@ -569,7 +569,7 @@ jobs:

# self-host with littlefs-fuse for a fuzz-like test
fuse:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: ${{!endsWith(github.ref, '-prefix')}}
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -619,7 +619,7 @@ jobs:

# test migration using littlefs-fuse
migrate:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: ${{!endsWith(github.ref, '-prefix')}}
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -691,7 +691,7 @@ jobs:

# status related tasks that run after tests
status:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [test, bench]
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions bd/lfs_emubd.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ int lfs_emubd_sync(const struct lfs_config *cfg) {

/// Additional extended API for driving test features ///

static int lfs_emubd_rawcrc(const struct lfs_config *cfg,
static int lfs_emubd_crc_(const struct lfs_config *cfg,
lfs_block_t block, uint32_t *crc) {
lfs_emubd_t *bd = cfg->context;

Expand Down Expand Up @@ -480,7 +480,7 @@ int lfs_emubd_crc(const struct lfs_config *cfg,
lfs_block_t block, uint32_t *crc) {
LFS_EMUBD_TRACE("lfs_emubd_crc(%p, %"PRIu32", %p)",
(void*)cfg, block, crc);
int err = lfs_emubd_rawcrc(cfg, block, crc);
int err = lfs_emubd_crc_(cfg, block, crc);
LFS_EMUBD_TRACE("lfs_emubd_crc -> %d", err);
return err;
}
Expand All @@ -491,7 +491,7 @@ int lfs_emubd_bdcrc(const struct lfs_config *cfg, uint32_t *crc) {
uint32_t crc_ = 0xffffffff;
for (lfs_block_t i = 0; i < cfg->block_count; i++) {
uint32_t i_crc;
int err = lfs_emubd_rawcrc(cfg, i, &i_crc);
int err = lfs_emubd_crc_(cfg, i, &i_crc);
if (err) {
LFS_EMUBD_TRACE("lfs_emubd_bdcrc -> %d", err);
return err;
Expand Down
Loading