mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Added SesParse support which is an improved version of VMFSsparse virtual disk format
This commit is contained in:
parent
bb90ce5bd7
commit
81b184877b
@ -35,6 +35,8 @@ public enum VmdkAdapterType {
|
||||
}
|
||||
|
||||
public static VmdkAdapterType getType(String vmdkAdapterType) {
|
||||
if (vmdkAdapterType == null)
|
||||
return VmdkAdapterType.none;
|
||||
if (vmdkAdapterType.equalsIgnoreCase("ide")) {
|
||||
return VmdkAdapterType.ide;
|
||||
} else if (vmdkAdapterType.equalsIgnoreCase("lsilogic")) {
|
||||
|
||||
@ -31,6 +31,7 @@ public class VmdkFileDescriptor {
|
||||
private static final Logger s_logger = Logger.getLogger(VmdkFileDescriptor.class);
|
||||
private static final String VMDK_PROPERTY_CREATE_TYPE = "createType";
|
||||
private static final String VMDK_CREATE_TYPE_VMFSSPARSE = "vmfsSparse";
|
||||
private static final String VMDK_CREATE_TYPE_SESPARSE = "SEsparse";
|
||||
private static final String VMDK_PROPERTY_ADAPTER_TYPE = "ddb.adapterType";
|
||||
|
||||
private Properties _properties = new Properties();
|
||||
@ -89,7 +90,7 @@ public class VmdkFileDescriptor {
|
||||
|
||||
public boolean isVmfsSparseFile() {
|
||||
String vmdkCreateType = _properties.getProperty(VMDK_PROPERTY_CREATE_TYPE);
|
||||
if (vmdkCreateType.equalsIgnoreCase(VMDK_CREATE_TYPE_VMFSSPARSE)) {
|
||||
if (vmdkCreateType.equalsIgnoreCase(VMDK_CREATE_TYPE_VMFSSPARSE) || vmdkCreateType.equalsIgnoreCase(VMDK_CREATE_TYPE_SESPARSE)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user