Skip to content

Commit cb88f8b

Browse files
authored
Merge pull request #244 from fox0/main
[PATCH] df: fix work with type fuse.portal
2 parents 1b1ab55 + 4750ae0 commit cb88f8b

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)