We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4657916 commit 1e81c62Copy full SHA for 1e81c62
pkg/instance/start.go
@@ -389,9 +389,19 @@ func ShowMessage(inst *store.Instance) error {
389
}
390
391
// prepareDiffDisk checks the disk size difference between inst.Disk and yaml.Disk.
392
+// If there is no diffDisk, return nil (the instance has not been initialized or started yet).
393
func prepareDiffDisk(inst *store.Instance) error {
394
diffDisk := filepath.Join(inst.Dir, filenames.DiffDisk)
395
396
+ // Handle the instance initialzation
397
+ _, err := os.Stat(diffDisk)
398
+ if err != nil {
399
+ if os.IsNotExist(err) {
400
+ return nil
401
+ }
402
+ return err
403
404
+
405
f, err := os.Open(diffDisk)
406
if err != nil {
407
return err
0 commit comments