logical_disk: skip unmounted volumes (#2084)

This commit is contained in:
Nic Jansma
2025-06-18 01:59:50 -04:00
committed by GitHub
parent 90dac66bf5
commit f285c3d1e2

View File

@@ -701,6 +701,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)