mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
@@ -1,3 +1,4 @@
|
||||
use super::IOStats;
|
||||
use crate::{disk::Info, error::Result};
|
||||
use nix::sys::{stat::stat, statfs::statfs};
|
||||
use std::io::{Error, ErrorKind};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
use super::IOStats;
|
||||
use crate::{disk::Info, error::Result};
|
||||
use std::io::{Error, ErrorKind, Result};
|
||||
use std::mem;
|
||||
|
||||
@@ -16,7 +16,7 @@ pub fn get_net_info(addr: &str, iface: &str) -> NetInfo {
|
||||
NetInfo {
|
||||
node_common: NodeCommon {
|
||||
addr: addr.to_owned(),
|
||||
error: "Not implemented for non-linux platforms".to_owned(),
|
||||
error: Some("Not implemented for non-linux platforms".to_string()),
|
||||
},
|
||||
interface: iface.to_owned(),
|
||||
..Default::default()
|
||||
|
||||
Reference in New Issue
Block a user