Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD: Fix optimal_transfer_size and files_free #1167

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sys/statfs.rs
Expand Up @@ -108,7 +108,7 @@ impl Statfs {
/// Optimal transfer block size
#[cfg(any(target_os = "ios", target_os = "macos", target_os = "openbsd"))]
pub fn optimal_transfer_size(&self) -> i32 {
self.0.f_iosize
self.0.f_iosize as _
}

/// Optimal transfer block size
Expand Down Expand Up @@ -389,7 +389,7 @@ impl Statfs {
/// Free file nodes in filesystem
#[cfg(any(target_os = "freebsd", target_os = "openbsd"))]
pub fn files_free(&self) -> i64 {
self.0.f_ffree
self.0.f_ffree as _
}

/// Free file nodes in filesystem
Expand Down