[0.30] logical_disk: skip unmounted volumes (#2084) (#2090)

Co-authored-by: Nic Jansma <nic@nicj.net>
This commit is contained in:
Jan-Otto Kröpke
2025-06-21 11:28:16 +02:00
committed by GitHub
parent 93940569fa
commit a3131dc087

View File

@@ -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)