We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb4b1c7 commit 2d286b2Copy full SHA for 2d286b2
src/abi/fuse_abi.rs
@@ -610,7 +610,12 @@ impl Attr {
610
mode: st.st_mode,
611
#[cfg(target_os = "macos")]
612
mode: st.st_mode as u32,
613
+ // st.st_nlink is u64 on x86_64 and powerpc64, and u32 on other architectures
614
+ // ref https://github.com/rust-lang/rust/blob/1.69.0/library/std/src/os/linux/raw.rs#L333
615
+ #[cfg(any(target_arch = "x86_64", target_arch = "powerpc64"))]
616
nlink: st.st_nlink as u32,
617
+ #[cfg(not(any(target_arch = "x86_64", target_arch = "powerpc64")))]
618
+ nlink: st.st_nlink,
619
uid: st.st_uid,
620
gid: st.st_gid,
621
rdev: st.st_rdev as u32,
0 commit comments