Skip to content

Commit

Permalink
Bump littlefs to version 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Feb 25, 2025
1 parent 45e87d5 commit 9ba103f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ log-error = []
# member `char name[LFS_NAME_MAX+1]`.
# This means that if we change `traits::Storage::FILENAME_MAX_PLUS_ONE`,
# we need to pass this on!


[patch.crates-io]
littlefs2-sys = { git = "https://github.com/sosthene-nitrokey/littlefs2-sys.git", rev = "71acedbc26d30359f31132937c6c07319cfe08a6"}
3 changes: 3 additions & 0 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ impl<Storage: driver::Storage> Allocation<Storage> {
name_max: filename_max_plus_one.wrapping_sub(1),
file_max,
attr_max,
compact_thresh: 0,
metadata_max: 0,
inline_max: 0,
};

Self {
Expand Down
4 changes: 2 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ ram_storage!(

#[test]
fn version() {
assert_eq!(crate::version().format, (2, 0));
assert_eq!(crate::version().backend, (2, 2));
assert_eq!(crate::version().format, (2, 1));
assert_eq!(crate::version().backend, (2, 9));
}

#[test]
Expand Down

0 comments on commit 9ba103f

Please sign in to comment.