diff --git a/32bit-fix.diff b/32bit-fix.diff new file mode 100644 index 0000000..742de85 --- /dev/null +++ b/32bit-fix.diff @@ -0,0 +1,13 @@ +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)))) + } diff --git a/stratisd.spec b/stratisd.spec index ac81e8b..c5b1465 100644 --- a/stratisd.spec +++ b/stratisd.spec @@ -15,6 +15,7 @@ Summary: Daemon that manages block devices to create filesystems License: MPLv2.0 URL: https://github.com/stratis-storage/stratisd Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: 32bit-fix.diff ExclusiveArch: %{rust_arches}