mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
devmapper: error reporting workaround in waitRemove()
This commit is contained in:
parent
e5d7472a0d
commit
ad2fbd9e87
1 changed files with 3 additions and 1 deletions
|
@ -553,7 +553,9 @@ func (devices *DeviceSetDM) waitRemove(hash string) error {
|
||||||
for ; i<1000; i+=1 {
|
for ; i<1000; i+=1 {
|
||||||
devinfo, err := getInfo(devname)
|
devinfo, err := getInfo(devname)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
// If there is an error we assume the device doesn't exist.
|
||||||
|
// The error might actually be something else, but we can't differentiate.
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
utils.Debugf("Waiting for removal of %s: exists=%d", devname, devinfo.Exists)
|
utils.Debugf("Waiting for removal of %s: exists=%d", devname, devinfo.Exists)
|
||||||
if devinfo.Exists == 0 {
|
if devinfo.Exists == 0 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue