Merge pull request #31356 from coolljt0725/fix_suspend
devicemapper: Fix suspend a removed device Upstream-commit: 3e561e4a845592b1c23cb6d13256694983066712 Component: engine
This commit is contained in:
@@ -858,6 +858,7 @@ func (devices *DeviceSet) takeSnapshot(hash string, baseInfo *devInfo, size uint
|
||||
if err != devicemapper.ErrEnxio {
|
||||
return err
|
||||
}
|
||||
devinfo = nil
|
||||
} else {
|
||||
defer devices.deactivateDevice(baseInfo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user