mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
graphdriver: change (*Driver).Put signature
There are a couple of drivers that swallow errors that may occur in their Put() implementation. This changes the signature of (*Driver).Put for all the drivers implemented. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
@@ -141,10 +141,12 @@ func (d *Driver) Get(id, mountLabel string) (string, error) {
|
||||
return rootFs, nil
|
||||
}
|
||||
|
||||
func (d *Driver) Put(id string) {
|
||||
if err := d.DeviceSet.UnmountDevice(id); err != nil {
|
||||
func (d *Driver) Put(id string) error {
|
||||
err := d.DeviceSet.UnmountDevice(id)
|
||||
if err != nil {
|
||||
log.Errorf("Warning: error unmounting device %s: %s", id, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (d *Driver) Exists(id string) bool {
|
||||
|
||||
Reference in New Issue
Block a user