From 9ba103f313b50fd86bbfcfccb121dd49238821a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 2 Feb 2024 14:05:14 +0100 Subject: [PATCH] Bump littlefs to version 2.9 --- Cargo.toml | 4 ++++ src/fs.rs | 3 +++ src/tests.rs | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 98c4d38f..be884577 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"} diff --git a/src/fs.rs b/src/fs.rs index 2de75265..1e88b7c1 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -158,6 +158,9 @@ impl Allocation { name_max: filename_max_plus_one.wrapping_sub(1), file_max, attr_max, + compact_thresh: 0, + metadata_max: 0, + inline_max: 0, }; Self { diff --git a/src/tests.rs b/src/tests.rs index cee385e5..f127d718 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -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]