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

[Windows] Feature Request: Add volume label data to psutil.disk_partitions() #1984

Open
MrPippin66 opened this issue Aug 30, 2021 · 1 comment

Comments

@MrPippin66
Copy link

Summary

  • OS: Windows
  • Type: core

Description: Enhance psutil.disk_partitions() to include the device label.

For Windows, the volume that contains a filesystem also contains a filesystem label.

This isn't mandatory, but it's used in Windows to help differentiate drives if drive names can't be statically associated with a known dataset.

For windows volumes, the label can be queried in powershell via "Get-Volume".

Example:

--

PS C:> get-volume

DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining Size


C Windows NTFS Fixed Healthy OK 167.35 GB 237.23 GB

--

The specific usage benefit for windows is if you use a standard labeling format to differentiate the use of the volume on systems with multiple volumes.

Examples:

--

tablespace
tempspace
dblog
dbarchive

<etc.>

--

Tools built on top of "psutil" can then leverage this extra data to narrow the scope of querying or monitoring instead of having to keep mapping of drive volume letters, which may vary from system to system for reasons specific to their environment or vendor requirements.

@MrPippin66
Copy link
Author

@giampaolo Is this still a candidate?

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