mirror of
https://github.com/clearlinux/docker.git
synced 2026-05-16 11:43:39 +00:00
devmapper: implement OnRemove
This commit is contained in:
@@ -73,6 +73,13 @@ func (b *DMBackend) OnCreate(img Image, layer archive.Archive) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *DMBackend) OnRemove(img Image) error {
|
||||
id := img.ID()
|
||||
if err := b.DeviceSet.RemoveDevice(id); err != nil {
|
||||
return fmt.Errorf("Unable to remove device for %v: %v", id, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *DMBackend) mountpoint(id string) string {
|
||||
if b.home == "" {
|
||||
|
||||
Reference in New Issue
Block a user