runtime-rs: uint FsType for s390x

statfs type on s390x should be c_uint, not __fsword_t

Fixes: #3888
Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
This commit is contained in:
Jakob Naucke 2022-03-14 17:35:46 +01:00 committed by Fupan Li
parent e705ee07c5
commit d3da156eea

View File

@ -13,11 +13,16 @@ use std::process::Command;
use crate::{eother, sl};
// nix filesystem_type for different target_os
// nix filesystem_type for different libc and architectures
#[cfg(all(target_os = "linux", target_env = "musl"))]
type FsType = libc::c_ulong;
#[cfg(all(target_os = "linux", not(any(target_env = "musl"))))]
#[cfg(all(
target_os = "linux",
not(any(target_env = "musl", target_arch = "s390x"))
))]
type FsType = libc::__fsword_t;
#[cfg(all(target_os = "linux", not(target_env = "musl"), target_arch = "s390x"))]
type FsType = libc::c_uint;
// from linux.git/fs/fuse/inode.c: #define FUSE_SUPER_MAGIC 0x65735546
const FUSE_SUPER_MAGIC: FsType = 0x65735546;