diff --git a/Cargo.toml b/Cargo.toml index 1cc635dfb..9f1324ffc 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.0" [dependencies.serde] version = "1" diff --git a/src/fs.rs b/src/fs.rs index 873d54302..e973a467a 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -50,6 +50,8 @@ pub struct Allocation { state: ll::lfs_t, } +unsafe impl Send for Allocation {} + // pub fn check_storage_requirements( impl Default for Allocation { @@ -129,6 +131,7 @@ impl Allocation { block_cycles, cache_size, lookahead_size, + compact_thresh: u32::MAX, read_buffer: core::ptr::null_mut(), prog_buffer: core::ptr::null_mut(), @@ -137,6 +140,8 @@ impl Allocation { name_max: filename_max_plus_one.wrapping_sub(1), file_max, attr_max, + metadata_max: 0, + inline_max: u32::MAX, }; Self {