You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("disk %q does not exists", diskName)
370
+
}
371
+
returnerr
372
+
}
373
+
374
+
// Shrinking can cause a disk failure
375
+
ifdiskSize<disk.Size {
376
+
returnfmt.Errorf("specified size %q is less than the current disk size %q. Disk shrinking is currently unavailable", units.BytesSize(float64(diskSize)), units.BytesSize(float64(disk.Size)))
377
+
}
378
+
379
+
ifdisk.Instance!="" {
380
+
inst, err:=store.Inspect(disk.Instance)
381
+
iferr==nil {
382
+
ifinst.Status==store.StatusRunning {
383
+
returnfmt.Errorf("cannot resize disk %q used by running instance %q. Please stop the VM instance", diskName, disk.Instance)
0 commit comments