mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-24 22:06:59 +01:00
CP-16480: Add gfs2 to the list of XenCenter known sr types
Signed-off-by: Mihaela Stoica <Mihaela.Stoica@citrix.com> Conflicts: XenModel/FriendlyNames.Designer.cs XenModel/FriendlyNames.resx XenModel/XenAPI-Extensions/SR.cs
This commit is contained in:
parent
4630994198
commit
b23ec8136a
9
XenModel/FriendlyNames.Designer.cs
generated
9
XenModel/FriendlyNames.Designer.cs
generated
@ -2679,6 +2679,15 @@ namespace XenAdmin {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to GFS2.
|
||||
/// </summary>
|
||||
public static string Label_SR_SRTypes_gfs2 {
|
||||
get {
|
||||
return ResourceManager.GetString("Label-SR.SRTypes-gfs2", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to VDI-per-LUN iSCSI.
|
||||
/// </summary>
|
||||
|
@ -1835,4 +1835,7 @@
|
||||
<data name="Message.action-pbd_plug_failed_on_server_start" xml:space="preserve">
|
||||
<value>Repair Storage</value>
|
||||
</data>
|
||||
<data name="Label-SR.SRTypes-gfs2" xml:space="preserve">
|
||||
<value>GFS2</value>
|
||||
</data>
|
||||
</root>
|
@ -53,7 +53,7 @@ namespace XenAPI
|
||||
lvmohba, egenera, egeneracd, dummy, unknown, equal, cslg, shm,
|
||||
iscsi,
|
||||
ebs, rawhba,
|
||||
smb, lvmofcoe,
|
||||
smb, lvmofcoe, gfs2,
|
||||
nutanix, nutanixiso,
|
||||
tmpfs
|
||||
}
|
||||
@ -229,16 +229,20 @@ namespace XenAPI
|
||||
/// </summary>
|
||||
public bool CanCreateWithXenCenter()
|
||||
{
|
||||
SRTypes typ = GetSRType(false);
|
||||
return typ == SRTypes.iso
|
||||
|| typ == SRTypes.lvmoiscsi
|
||||
|| typ == SRTypes.nfs
|
||||
|| typ == SRTypes.equal
|
||||
|| typ == SRTypes.netapp
|
||||
|| typ == SRTypes.lvmohba
|
||||
|| typ == SRTypes.cslg
|
||||
|| typ == SRTypes.smb
|
||||
|| typ == SRTypes.lvmofcoe;
|
||||
get
|
||||
{
|
||||
SRTypes type = GetSRType(false);
|
||||
return type == SRTypes.iso
|
||||
|| type == SRTypes.lvmoiscsi
|
||||
|| type == SRTypes.nfs
|
||||
|| type == SRTypes.equal
|
||||
|| type == SRTypes.netapp
|
||||
|| type == SRTypes.lvmohba
|
||||
|| type == SRTypes.cslg
|
||||
|| type == SRTypes.smb
|
||||
|| type == SRTypes.lvmofcoe
|
||||
|| type == SRTypes.gfs2;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsLocalSR()
|
||||
|
Loading…
Reference in New Issue
Block a user