Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,17 @@ public KVMPhysicalDisk createPhysicalDisk(String name, KVMStoragePool pool,

public boolean disconnectPhysicalDisk(Map<String, String> volumeToDisconnect);

// given local path to file/device (per Libvirt XML), 1) check that device is
// handled by your adaptor, return false if not. 2) clean up device, return true
/**
* Given local path to file/device (per Libvirt XML),
* 1) Make sure to check that device is handled by your adaptor, return false if not.
* 2) clean up device, return true
* 3) if clean up fails, then return false
*
* If the method wrongly returns true, then there are chances that disconnect will not reach the right storage adapter
*
* @param localPath path for the file/device from the disk definition per Libvirt XML.
* @return true if the operation is successful; false if the operation fails or the adapter fails to handle the path.
*/
public boolean disconnectPhysicalDiskByPath(String localPath);

public boolean deletePhysicalDisk(String uuid, KVMStoragePool pool, Storage.ImageFormat format);
Expand Down