use of com.emc.sa.service.vmware.block.tasks.ExpandVmfsDatastore in project coprhd-controller by CoprHD.
the class VMwareSupport method expandVmfsDatastore.
/**
* Expand a VMFS datastore.
*
* @param host
* the host to which the volume is assigned.
* @param cluster
* the cluster to which the volume is associated (may be null if the storage is exclusive to the host)
* @param volume
* the volume that was expanded.
* @param datastore
* the datastore to expand.
*/
public void expandVmfsDatastore(HostSystem host, ClusterComputeResource cluster, URI hostOrClusterId, BlockObjectRestRep volume, Datastore datastore) {
HostScsiDisk disk = findScsiDisk(host, cluster, volume);
execute(new ExpandVmfsDatastore(host, disk, datastore));
addAffectedResource(volume);
addVmfsDatastoreTag(volume, hostOrClusterId, datastore.getName());
ExecutionUtils.clearRollback();
}
Aggregations