Skip to content

Commit

Permalink
Merge pull request moby#4895 from alexlarsson/dm-clean-shutdown
Browse files Browse the repository at this point in the history
devmapper: Ensure we shut down thin pool cleanly.
  • Loading branch information
crosbymichael committed Mar 28, 2014
2 parents 5b9c860 + 66c5e19 commit 755cd48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/graphdriver/devmapper/deviceset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 755cd48

Please sign in to comment.