Merge pull request #31356 from coolljt0725/fix_suspend
devicemapper: Fix suspend a removed device
This commit is contained in:
commit
3e561e4a84
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue