Skip to content

Commit

Permalink
fix(op, fs): 🐛 fix some platform-specific bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lzzzzzt committed Jun 7, 2024
1 parent 38643ca commit 9f630e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monoio/src/fs/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ impl MetadataExt for Metadata {
self.0.stat.st_nlink.into()
}

#[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))]
fn nlink(&self) -> u64 {
self.0.stat.st_nlink
}
Expand Down Expand Up @@ -518,7 +519,6 @@ pub async fn metadata<P: AsRef<Path>>(path: P) -> std::io::Result<Metadata> {
/// Ok(())
/// }
/// ```

pub async fn symlink_metadata<P: AsRef<Path>>(path: P) -> std::io::Result<Metadata> {
let flags = libc::AT_STATX_SYNC_AS_STAT | libc::AT_SYMLINK_NOFOLLOW;

Expand Down

0 comments on commit 9f630e7

Please sign in to comment.