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

BSD: disk_partitions(all=False) always return an empty list #906

Closed
giampaolo opened this issue Oct 4, 2016 · 1 comment
Closed

BSD: disk_partitions(all=False) always return an empty list #906

giampaolo opened this issue Oct 4, 2016 · 1 comment

Comments

@giampaolo
Copy link
Owner

On BSD systems there is no difference between df and df -a. The same partitions are always returned. As such psutil should ignore the all argument passed to disk_partitions as there simply is no way to distinguish between physical partitions and "others". We'll just always return them all.

shirou added a commit to shirou/gopsutil that referenced this issue Oct 20, 2020
According to giampaolo/psutil#906,
all BSD system returns same information `df` and `df -a`.
@Loney1
Copy link

Loney1 commented Sep 9, 2021

Hi shirou, I am a student. I have one question is that can I get the disk SN in gopsutil. I can't find this function in the source code

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

No branches or pull requests

2 participants