several function names fixed in devmapper.go
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn> Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn> Upstream-commit: f93b41e9261f96d4f3b2337f1ff419de42871489 Component: engine
This commit is contained in:
@@ -505,7 +505,7 @@ func ReloadPool(poolName string, dataFile, metadataFile *os.File, poolBlockSize
|
||||
}
|
||||
|
||||
if err := task.run(); err != nil {
|
||||
return fmt.Errorf("devicemapper: Error running deviceCreate %s", err)
|
||||
return fmt.Errorf("devicemapper: Error running ReloadPool %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
@@ -792,7 +792,7 @@ func CreateSnapDeviceRaw(poolName string, deviceID int, baseDeviceID int) error
|
||||
if dmSawExist {
|
||||
return ErrDeviceIDExists
|
||||
}
|
||||
return fmt.Errorf("devicemapper: Error running deviceCreate (createSnapDevice) %s", err)
|
||||
return fmt.Errorf("devicemapper: Error running deviceCreate (CreateSnapDeviceRaw) %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user