No idea why this was a method. Maybe a cut and paste bug.
Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
| ... | ... |
@@ -588,7 +588,7 @@ func (devices *DeviceSet) AddDevice(hash, baseHash string) error {
|
| 588 | 588 |
|
| 589 | 589 |
deviceId := devices.allocateDeviceId() |
| 590 | 590 |
|
| 591 |
- if err := devices.createSnapDevice(devices.getPoolDevName(), deviceId, baseInfo.Name(), baseInfo.DeviceId); err != nil {
|
|
| 591 |
+ if err := createSnapDevice(devices.getPoolDevName(), deviceId, baseInfo.Name(), baseInfo.DeviceId); err != nil {
|
|
| 592 | 592 |
utils.Debugf("Error creating snap device: %s\n", err)
|
| 593 | 593 |
return err |
| 594 | 594 |
} |
| ... | ... |
@@ -546,7 +546,7 @@ func activateDevice(poolName string, name string, deviceId int, size uint64) err |
| 546 | 546 |
return nil |
| 547 | 547 |
} |
| 548 | 548 |
|
| 549 |
-func (devices *DeviceSet) createSnapDevice(poolName string, deviceId int, baseName string, baseDeviceId int) error {
|
|
| 549 |
+func createSnapDevice(poolName string, deviceId int, baseName string, baseDeviceId int) error {
|
|
| 550 | 550 |
devinfo, _ := getInfo(baseName) |
| 551 | 551 |
doSuspend := devinfo != nil && devinfo.Exists != 0 |
| 552 | 552 |
|