mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CP-13101: XenCenter: Display provisioning method for existing SRs (thin / thick)
This commit is contained in:
parent
997a9e1489
commit
aef08eb8ab
@ -1266,7 +1266,10 @@ namespace XenAdmin.TabPages
|
||||
s.AddEntry(Messages.TYPE, sr.FriendlyTypeName);
|
||||
|
||||
if (sr.content_type != SR.Content_Type_ISO && sr.GetSRType(false) != SR.SRTypes.udev)
|
||||
{
|
||||
s.AddEntry(FriendlyName("SR.size"), sr.SizeString);
|
||||
s.AddEntry(FriendlyName("SR.provisioning"), sr.IsThinProvisioned ? Messages.SR_THIN_PROVISIONING : Messages.SR_THICK_PROVISIONING);
|
||||
}
|
||||
|
||||
if (sr.GetScsiID() != null)
|
||||
s.AddEntry(FriendlyName("SR.scsiid"), sr.GetScsiID() ?? Messages.UNKNOWN);
|
||||
|
11
XenModel/FriendlyNames.Designer.cs
generated
11
XenModel/FriendlyNames.Designer.cs
generated
@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18444
|
||||
// Runtime Version:4.0.30319.34209
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@ -2481,6 +2481,15 @@ namespace XenAdmin {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Provisioning.
|
||||
/// </summary>
|
||||
public static string Label_SR_provisioning {
|
||||
get {
|
||||
return ResourceManager.GetString("Label-SR.provisioning", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to SCSI ID.
|
||||
/// </summary>
|
||||
|
@ -1772,4 +1772,7 @@
|
||||
<data name="Label-SR.SRTypes-lvmofcoe" xml:space="preserve">
|
||||
<value>FCoE</value>
|
||||
</data>
|
||||
<data name="Label-SR.provisioning" xml:space="preserve">
|
||||
<value>Provisioning</value>
|
||||
</data>
|
||||
</root>
|
20
XenModel/Messages.Designer.cs
generated
20
XenModel/Messages.Designer.cs
generated
@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18444
|
||||
// Runtime Version:4.0.30319.34209
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@ -30042,6 +30042,24 @@ namespace XenAdmin {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Thick.
|
||||
/// </summary>
|
||||
public static string SR_THICK_PROVISIONING {
|
||||
get {
|
||||
return ResourceManager.GetString("SR_THICK_PROVISIONING", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Thin.
|
||||
/// </summary>
|
||||
public static string SR_THIN_PROVISIONING {
|
||||
get {
|
||||
return ResourceManager.GetString("SR_THIN_PROVISIONING", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cannot reclaim freed space, because the SR is detached..
|
||||
/// </summary>
|
||||
|
@ -10462,6 +10462,12 @@ Do you want to connect to the pool master '{1}'?</value>
|
||||
<data name="SR_SIZE_USED" xml:space="preserve">
|
||||
<value>{0} used of {1} total ({2} allocated)</value>
|
||||
</data>
|
||||
<data name="SR_THICK_PROVISIONING" xml:space="preserve">
|
||||
<value>Thick</value>
|
||||
</data>
|
||||
<data name="SR_THIN_PROVISIONING" xml:space="preserve">
|
||||
<value>Thin</value>
|
||||
</data>
|
||||
<data name="SR_TRIM_NO_STORAGE_HOST_ERROR" xml:space="preserve">
|
||||
<value>Cannot reclaim freed space, because the SR is detached.</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user