mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #4895 from alexlarsson/dm-clean-shutdown
devmapper: Ensure we shut down thin pool cleanly.
This commit is contained in:
commit
755cd48258
1 changed files with 4 additions and 0 deletions
|
@ -821,6 +821,10 @@ func (devices *DeviceSet) Shutdown() error {
|
|||
info.lock.Unlock()
|
||||
}
|
||||
|
||||
if err := devices.deactivateDevice(""); err != nil {
|
||||
utils.Debugf("Shutdown deactivate base , error: %s\n", err)
|
||||
}
|
||||
|
||||
if err := devices.deactivatePool(); err != nil {
|
||||
utils.Debugf("Shutdown deactivate pool , error: %s\n", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue