add support for disk compaction to esx5 builder

pull/6411/head
Jeffrey Martin 8 years ago
parent 266a48a73a
commit 09c71f3810
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171

@ -46,7 +46,8 @@ func (d *ESX5Driver) Clone(dst, src string, linked bool) error {
}
func (d *ESX5Driver) CompactDisk(diskPathLocal string) error {
return nil
diskPath := d.datastorePath(diskPathLocal)
return d.sh("vmkfstools", "-K", diskPath)
}
func (d *ESX5Driver) CreateDisk(diskPathLocal string, size string, adapter_type string, typeId string) error {

Loading…
Cancel
Save