Skip to content

Commit

Permalink
Revert "Disable disk resizing for now"
Browse files Browse the repository at this point in the history
This reverts commit 71a684e.
  • Loading branch information
cfergeau authored and anjannath committed Apr 5, 2021
1 parent a114342 commit 551e7c7
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions pkg/hyperkit/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,6 @@ const (

type Driver hyperkitdriver.Driver

/* dummy data type used to hack hyperkit.QcowDisk behaviour */
type QcowDisk struct {
hyperkit.QcowDisk
}

/* Implementing this method from the hyperkit.Disk interface disables disk
* resizing for now as this requires the qcow-tool binary */
func (qcow *QcowDisk) Ensure() error {
return nil
}

// NewDriver creates a new driver for a host
func NewDriver() *Driver {
return &Driver{
Expand Down Expand Up @@ -214,11 +203,9 @@ func (d *Driver) Start() error {
return fmt.Errorf("Unsupported VM image format: %s", d.ImageFormat)
}
h.Disks = []hyperkit.Disk{
&QcowDisk{
hyperkit.QcowDisk{
Path: d.getDiskPath(),
Trim: true,
},
&hyperkit.QcowDisk{
Path: d.getDiskPath(),
Trim: true,
},
}
log.Debugf("Starting with cmdline: %s", d.Cmdline)
Expand Down

0 comments on commit 551e7c7

Please sign in to comment.