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 2, 2024
1 parent ebd27e4 commit 0ee749a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ default-features = false
version = "0.2"

[dependencies.littlefs2-sys]
version = "0.1.6"
version = "0.2.0"

[dependencies.serde]
version = "1"
Expand Down Expand Up @@ -57,3 +57,6 @@ 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 @@ -133,6 +133,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 @@ -41,8 +41,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 0ee749a

Please sign in to comment.