Compare commits
2 Commits
66e35702b8
...
bd707cd76c
| Author | SHA1 | Date |
|---|---|---|
|
|
bd707cd76c | |
|
|
721d375531 |
|
|
@ -2196,8 +2196,19 @@ class FreeNASSshDriver extends ControllerZfsBaseDriver {
|
||||||
async getIsScale() {
|
async getIsScale() {
|
||||||
const systemVersion = await this.getSystemVersion();
|
const systemVersion = await this.getSystemVersion();
|
||||||
|
|
||||||
if (systemVersion.v2 && systemVersion.v2.toLowerCase().includes("scale")) {
|
if (systemVersion.v2) {
|
||||||
return true;
|
const versionLower = systemVersion.v2.toLowerCase();
|
||||||
|
// Check for explicit "scale" in version string
|
||||||
|
if (versionLower.includes("scale")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
// TrueNAS 25+ doesn't include "SCALE" in version string, but versions 25+ are SCALE-only
|
||||||
|
if (versionLower.includes("truenas")) {
|
||||||
|
const majorVersion = await this.getSystemVersionMajor();
|
||||||
|
if (Number(majorVersion) >= 25) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue