diff --git a/src/utils/platform.rs b/src/utils/platform.rs index bf876f1..402d8ae 100644 --- a/src/utils/platform.rs +++ b/src/utils/platform.rs @@ -1,12 +1,8 @@ use std; -#[cfg(not(any(target_os = "macos", target_os = "linux")))] -pub fn get_block_size() -> u64 { - 1024 -} - -#[cfg(any(target_os = "macos", target_os = "linux"))] -pub fn get_block_size() -> u64 { +fn get_block_size() -> u64 { + // All os specific implementations of MetatdataExt seem to define a block as 512 bytes + // https://doc.rust-lang.org/std/os/linux/fs/trait.MetadataExt.html#tymethod.st_blocks 512 }