add ext4 and xfs as SR type

This commit is contained in:
cocoon 2019-01-19 23:22:18 +01:00 committed by Alexander Schulz
parent 801fef1157
commit 80ac397842
4 changed files with 25 additions and 4 deletions

View File

@ -357,6 +357,12 @@
<data name="Label-SR.SRTypes-ext" xml:space="preserve">
<value>Ext3</value>
</data>
<data name="Label-SR.SRTypes-ext4" xml:space="preserve">
<value>Ext4</value>
</data>
<data name="Label-SR.SRTypes-xfs" xml:space="preserve">
<value>XFS</value>
</data>
<data name="Label-SR.SRTypes-iscsi" xml:space="preserve">
<value>VDI-per-LUN iSCSI</value>
</data>

View File

@ -357,6 +357,12 @@
<data name="Label-SR.SRTypes-ext" xml:space="preserve">
<value>Ext3</value>
</data>
<data name="Label-SR.SRTypes-ext4" xml:space="preserve">
<value>Ext4</value>
</data>
<data name="Label-SR.SRTypes-xfs" xml:space="preserve">
<value>XFS</value>
</data>
<data name="Label-SR.SRTypes-iscsi" xml:space="preserve">
<value>VDI-per-LUN iSCSI</value>
</data>

View File

@ -357,6 +357,12 @@
<data name="Label-SR.SRTypes-ext" xml:space="preserve">
<value>Ext3</value>
</data>
<data name="Label-SR.SRTypes-ext4" xml:space="preserve">
<value>Ext4</value>
</data>
<data name="Label-SR.SRTypes-xfs" xml:space="preserve">
<value>XFS</value>
</data>
<data name="Label-SR.SRTypes-iscsi" xml:space="preserve">
<value>VDI-per-LUN iSCSI</value>
</data>

View File

@ -49,13 +49,13 @@ namespace XenAPI
/// </summary>
public enum SRTypes
{
local, ext, lvmoiscsi, iso, nfs, lvm, netapp, udev, lvmofc,
local, ext, ext4, lvmoiscsi, iso, nfs, lvm, netapp, udev, lvmofc,
lvmohba, egenera, egeneracd, dummy, unknown, equal, cslg, shm,
iscsi,
ebs, rawhba,
smb, lvmofcoe, gfs2,
nutanix, nutanixiso,
tmpfs
tmpfs, xfs
}
public const long DISK_MAX_SIZE = 2 * Util.BINARY_TERA;
@ -245,7 +245,9 @@ namespace XenAPI
|| type == SRTypes.cslg
|| type == SRTypes.smb
|| type == SRTypes.lvmofcoe
|| type == SRTypes.gfs2;
|| type == SRTypes.gfs2
|| type == SRTypes.ext4
|| type == SRTypes.xfs;
}
public bool IsLocalSR()
@ -256,7 +258,8 @@ namespace XenAPI
|| typ == SRTypes.lvm
|| typ == SRTypes.udev
|| typ == SRTypes.egeneracd
|| typ == SRTypes.dummy;
|| typ == SRTypes.dummy
|| typ == SRTypes.ext4;
}
public bool ShowForgetWarning()