use of org.libvirt.StoragePool in project cloudstack by apache.
the class ManagedNfsStorageAdaptor method disconnectPhysicalDisk.
/*
* disconnect the disk by destroying the sp pointer
*/
public boolean disconnectPhysicalDisk(KVMStoragePool pool, String mountpoint) throws LibvirtException {
LibvirtStoragePool libvirtPool = (LibvirtStoragePool) pool;
StoragePool sp = libvirtPool.getPool();
// destroy the pool
sp.destroy();
return true;
}
Aggregations