diff --git a/Cargo.toml b/Cargo.toml index 1cc635df..7a17bd3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ default-features = false version = "0.2" [dependencies.littlefs2-sys] -version = "0.1.6" +version = "0.2" [dependencies.serde] version = "1" @@ -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", branch = "update" } diff --git a/src/fs.rs b/src/fs.rs index 4e1ef87b..9a4904c7 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -132,6 +132,7 @@ impl Allocation { name_max: filename_max_plus_one.wrapping_sub(1), file_max, attr_max, + metadata_max: 0, }; Self {