shirou / gopsutil

psutil for golang
Other
10.56k stars 1.58k forks source link

Add support for folder mounted Windows disks #1245

Open cruscio opened 2 years ago

cruscio commented 2 years ago

It appears disk/windows_disk.go filters on drive letters, excluding folder mounted volumes.

As a Telegraf user, I am looking to monitor all disk volumes mounted in Windows, both drive-letter mounted and folder-path mounted. Internally, Telegraf uses gopsutil to retrieve these data. Gopsutil appears to only support drive letters mounted disks.

Additional context

rohan-rayaraddi commented 9 months ago

@dloucasfx Is this being actively worked on? It would be great to have it fixed.

dloucasfx commented 9 months ago

@dloucasfx Is this being actively worked on? It would be great to have it fixed.

@rohan-rayaraddi yes, I just updated the PR with @shirou 's suggestions https://github.com/shirou/gopsutil/pull/1534