Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to obtain virtual volume in windows #1607

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
Loading