Skip to content

Commit 4750ae0

Browse files
committed
df: fix work with type fuse.portal
1 parent 1b1ab55 commit 4750ae0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/df.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ fn read_mount_info() -> io::Result<MountList> {
161161
let mut mount: libc::statfs = std::mem::zeroed();
162162
let rc = libc::statfs(dirname.as_ptr(), &mut mount);
163163
if rc < 0 {
164-
return Err(io::Error::last_os_error());
164+
eprintln!("{}: {}", dirname.to_str().unwrap(), io::Error::last_os_error());
165+
continue;
165166
}
166167

167168
info.push(&mount, devname, dirname);

0 commit comments

Comments
 (0)