mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Show warning when user specify dm.basesize for already initialized devicemapper drive
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
0e1618db19
commit
e035d27223
1 changed files with 4 additions and 1 deletions
|
@ -991,7 +991,10 @@ func (devices *DeviceSet) setupBaseImage() error {
|
|||
if err := devices.setupVerifyBaseImageUUID(oldInfo); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if devices.baseFsSize != defaultBaseFsSize && devices.baseFsSize != devices.getBaseDeviceSize() {
|
||||
logrus.Warnf("Base device is already initialized to size %s, new value of base device size %s will not take effect",
|
||||
units.HumanSize(float64(devices.getBaseDeviceSize())), units.HumanSize(float64(devices.baseFsSize)))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue