drivers/vmwarefusion/vmrun_darwin.go
func vdiskmanager(dest string, size int) error {
	cmd := exec.Command(vdiskmanbin, "-c", "-t", "0", "-s", fmt.Sprintf("%dMB", size), "-a", "lsilogic", dest)
	if os.Getenv("MACHINE_DEBUG") != "" {
		cmd.Stdout = os.Stdout
		cmd.Stderr = os.Stderr
	}

	if stdout := cmd.Run(); stdout != nil {
		if ee, ok := stdout.(*exec.Error); ok && ee == exec.ErrNotFound {
			return ErrVMRUNNotFound
		}
	}
	return nil
}
func vdiskmanager(dest string, size int) error {
	cmd := exec.Command(vdiskmanbin, "-c", "-t", "0", "-s", fmt.Sprintf("%dMB", size), "-a", "lsilogic", dest)
	if os.Getenv("MACHINE_DEBUG") != "" {
		cmd.Stdout = os.Stdout
		cmd.Stderr = os.Stderr
	}

	if stdout := cmd.Run(); stdout != nil {
		if ee, ok := stdout.(*exec.Error); ok && ee == exec.ErrNotFound {
			return ErrVMRUNNotFound
		}
	}
	return nil
}
func vdiskmanager ( dest string , size int ) error { cmd := exec . Command ( vdiskmanbin , " " , " " , " " , " " , fmt . Sprintf ( " " , size ) , " " , " " , dest ) if os . Getenv ( " " ) != " " { cmd . Stdout = os . Stdout cmd . Stderr = os . Stderr } if stdout := cmd . Run ( ) ; stdout != nil { if ee , ok := stdout . ( * exec . Error ) ; ok && ee == exec . ErrNotFound { return ErrVMRUNNotFound } } return nil }
// Make a vmdk disk image with the given size (in MB).
Make a vmdk disk image with the given size ( in MB ) .