stratisd/32bit-fix.diff
Igor Gnatenko ef226cc81e
fix build on 32bit systems
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-03-08 22:37:16 +01:00

14 lines
654 B
Diff

diff --git a/src/engine/strat_engine/thinpool/filesystem.rs b/src/engine/strat_engine/thinpool/filesystem.rs
index ae6c66b..ffcf962 100644
--- a/src/engine/strat_engine/thinpool/filesystem.rs
+++ b/src/engine/strat_engine/thinpool/filesystem.rs
@@ -225,6 +225,6 @@ pub fn fs_usage(mount_point: &Path) -> EngineResult<(Bytes, Bytes)> {
// Upcast to u64.
let f_bsize = stat.block_size() as u64;
- let blocks = stat.blocks();
- Ok((Bytes(f_bsize * blocks), Bytes(f_bsize * (blocks - stat.blocks_free()))))
+ let blocks = stat.blocks() as u64;
+ Ok((Bytes(f_bsize * blocks), Bytes(f_bsize * (blocks - stat.blocks_free() as u64))))
}