Search in sources :

Example 1 with ReduceFileSystem

use of com.emc.sa.service.vipr.file.tasks.ReduceFileSystem in project coprhd-controller by CoprHD.

the class FileStorageUtils method reduceFileSystem.

public static void reduceFileSystem(URI fileSystemId, double sizeInGb) {
    String newSize = String.valueOf(DiskSizeConversionUtils.gbToBytes(sizeInGb));
    Task<FileShareRestRep> response = execute(new ReduceFileSystem(fileSystemId, newSize));
    addAffectedResource(response);
    logInfo("file.storage.task", response.getOpId());
}
Also used : ReduceFileSystem(com.emc.sa.service.vipr.file.tasks.ReduceFileSystem) FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep)

Aggregations

ReduceFileSystem (com.emc.sa.service.vipr.file.tasks.ReduceFileSystem)1 FileShareRestRep (com.emc.storageos.model.file.FileShareRestRep)1