Commit 88815340 authored by Claes Sjofors's avatar Claes Sjofors Committed by Claes Sjöfors

Sev node fox for configuration with RootVolumeLoad

parent 23a78381
...@@ -1815,6 +1815,28 @@ pwr_tStatus lfu_SaveDirectoryVolume( ...@@ -1815,6 +1815,28 @@ pwr_tStatus lfu_SaveDirectoryVolume(
if (nodeo.cid() == pwr_cClass_SevNodeConfig) { if (nodeo.cid() == pwr_cClass_SevNodeConfig) {
// Qcom only connection // Qcom only connection
nc.connection = 1; nc.connection = 1;
found = 0;
sts = ldh_GetChild(ldhses, nodeo.oid(), &volobjid);
while (ODD(sts)) {
sts = ldh_GetObjectClass(ldhses, volobjid, &vcid);
if (EVEN(sts))
return sts;
if (vcid == pwr_cClass_RootVolumeLoad) {
sts = ldh_ObjidToName(ldhses, volobjid, ldh_eName_Object,
volstr, sizeof(volstr), &size);
found = 1;
break;
}
}
if (!found) {
char msg[200];
sprintf(msg, "Error in SevNodeConfig object '%s', no RootVolumeLoad object found",
nodeo.longName().c_str());
MsgWindow::message('E', msg, msgw_ePop_Default);
syntax_error = 1;
}
} else { } else {
// Get attribute Connection // Get attribute Connection
a = sp->attribute(nodeo.oid(), "RtBody", "Connection"); a = sp->attribute(nodeo.oid(), "RtBody", "Connection");
...@@ -1824,15 +1846,16 @@ pwr_tStatus lfu_SaveDirectoryVolume( ...@@ -1824,15 +1846,16 @@ pwr_tStatus lfu_SaveDirectoryVolume(
a.value(&nc.connection); a.value(&nc.connection);
if (!a) if (!a)
return sts; return sts;
}
// Get attribute Volume
a = sp->attribute(nodeo.oid(), "RtBody", "Volume");
if (!a)
return a.sts();
a.value(volstr); // Get attribute Volume
if (!a) a = sp->attribute(nodeo.oid(), "RtBody", "Volume");
return sts; if (!a)
return a.sts();
a.value(volstr);
if (!a)
return sts;
}
// Get attribute QComMinResendTime // Get attribute QComMinResendTime
a = sp->attribute(nodeo.oid(), "RtBody", "QComMinResendTime"); a = sp->attribute(nodeo.oid(), "RtBody", "QComMinResendTime");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment