Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions disk/disk_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package disk
import (
"bytes"
"context"
"errors"
"fmt"
"syscall"
"unsafe"
Expand Down Expand Up @@ -125,6 +126,9 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
if typeret == 5 || typeret == 2 {
continue // device is not ready will happen if there is no disk in the drive
}
if errors.Is(err, windows.ERROR_OPERATION_ABORTED) {
continue
}
warnings.Add(err)
continue
}
Expand Down