mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-27 02:56:01 +01:00
enable all versions because sr-probe fails to find all possible NFS versions (at least on FreeNAS shares)
This commit is contained in:
parent
caae452ff0
commit
58ad78fdf2
@ -215,18 +215,20 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
|
||||
}
|
||||
else
|
||||
{
|
||||
//supported NFS versions are known
|
||||
nfsVersion3RadioButton.Enabled = supportedVersions.Contains("3");
|
||||
nfsVersion4RadioButton.Enabled = supportedVersions.Contains("4");
|
||||
nfsVersion41RadioButton.Enabled = supportedVersions.Contains("4.1");
|
||||
// TODO: sr-probe does not find NFSv4/NFSv4.1 with FreeNAS share, so enable all buttons
|
||||
NfsServerEnableVersionButtons(true);
|
||||
|
||||
// TODO: improve handling with 4.1
|
||||
//when only one version is supported, check/select the one that is
|
||||
if (!(nfsVersion3RadioButton.Enabled && nfsVersion4RadioButton.Enabled))
|
||||
{
|
||||
nfsVersion3RadioButton.Checked = nfsVersion3RadioButton.Enabled;
|
||||
nfsVersion4RadioButton.Checked = nfsVersion4RadioButton.Enabled;
|
||||
}
|
||||
////supported NFS versions are known
|
||||
//nfsVersion3RadioButton.Enabled = supportedVersions.Contains("3");
|
||||
//nfsVersion4RadioButton.Enabled = supportedVersions.Contains("4");
|
||||
//nfsVersion41RadioButton.Enabled = supportedVersions.Contains("4.1");
|
||||
|
||||
////when only one version is supported, check/select the one that is
|
||||
//if (!(nfsVersion3RadioButton.Enabled && nfsVersion4RadioButton.Enabled))
|
||||
//{
|
||||
// nfsVersion3RadioButton.Checked = nfsVersion3RadioButton.Enabled;
|
||||
// nfsVersion4RadioButton.Checked = nfsVersion4RadioButton.Enabled;
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user