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:
Vincent Batts
2015-01-12 13:34:35 -05:00
parent cb4ea2c778
commit 00fd63e558
6 changed files with 19 additions and 12 deletions
+4 -2
View File
@@ -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 {