diff --git a/ecstore/src/utils/os/linux.rs b/ecstore/src/utils/os/linux.rs index 77a873754..ab9e79299 100644 --- a/ecstore/src/utils/os/linux.rs +++ b/ecstore/src/utils/os/linux.rs @@ -6,7 +6,7 @@ use std::path::Path; use crate::{disk::Info, error::Result}; /// returns total and free bytes available in a directory, e.g. `/`. -pub fn get_info(p: impl AsRef, _first_time: bool) -> std::io::Result { +pub fn get_info(p: impl AsRef) -> std::io::Result { let stat_fs = statfs(p.as_ref())?; let bsize = stat_fs.block_size() as u64; diff --git a/ecstore/src/utils/stat_linux.rs b/ecstore/src/utils/stat_linux.rs index 254c71e6b..9f728ebee 100644 --- a/ecstore/src/utils/stat_linux.rs +++ b/ecstore/src/utils/stat_linux.rs @@ -43,7 +43,7 @@ fn get_fs_type(ftype: FsType) -> String { } } -pub fn get_info(path: &str, first_time: bool) -> Result { +pub fn get_info(path: &str) -> Result { let statfs = statfs(path)?; let reserved_blocks = statfs.blocks_free() - statfs.blocks_available(); let mut info = Info { @@ -69,10 +69,6 @@ pub fn get_info(path: &str, first_time: bool) -> Result { info.used = info.total - info.free; - if first_time { - // todo - } - Ok(info) }