1
0
Fork 0
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:
Solomon Hykes 2013-10-17 01:49:51 +00:00
parent e5d7472a0d
commit ad2fbd9e87

View file

@ -553,7 +553,9 @@ func (devices *DeviceSetDM) waitRemove(hash string) error {
for ; i<1000; i+=1 {
devinfo, err := getInfo(devname)
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)
if devinfo.Exists == 0 {