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

Ignore nfs on linux #876

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

kayoch1n
Copy link
Contributor

This PR tries to fix the problem that calling statvfs on nfs may hang. It is done by ignoring the fs having its type named nfs or nfs4.

Avoiding to call statvfs on nfs will leave total_space and available_space to be zeros and can be misleading. So I decide not to include nfs in what returns from get_all_disks_inner

@GuillaumeGomez
Copy link
Owner

Thanks! Maybe add that NFS file systems are ignored on linux the Disk documentation?

@GuillaumeGomez
Copy link
Owner

Thanks!

@complexspaces
Copy link
Contributor

Late comment: I believe this is the correct behavior to match the other implementations for consistency too. Both macOS and Windows ignore SMB drives with their current implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants