mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-07 21:46:37 +00:00
Co-authored-by: Nic Jansma <nic@nicj.net>
This commit is contained in:
@@ -588,6 +588,11 @@ func getAllMountedVolumes() (map[string]string, error) {
|
||||
break
|
||||
}
|
||||
|
||||
if errors.Is(err, windows.ERROR_FILE_NOT_FOUND) {
|
||||
// the volume is not mounted
|
||||
break
|
||||
}
|
||||
|
||||
if errors.Is(err, windows.ERROR_NO_MORE_FILES) {
|
||||
rootPathBuf = make([]uint16, (rootPathLen+1)/2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user