Handle image metadata when drivers are switched

This commit is contained in:
Michael Crosby
2013-11-20 10:31:51 -08:00
parent 24586d7af5
commit 1b28cdc7f9
6 changed files with 33 additions and 2 deletions
+4
View File
@@ -121,3 +121,7 @@ func (d *Driver) unmount(id, mountPoint string) error {
// Unmount the device
return d.DeviceSet.UnmountDevice(id, mountPoint, true)
}
func (d *Driver) Exists(id string) bool {
return d.Devices[id] != nil
}