Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
abc09ddb
Commit
abc09ddb
authored
Dec 18, 2008
by
vogelor
Browse files
improvement of the RAID-State
parent
a5c833b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/mods-available/monitor_core_module.inc.php
View file @
abc09ddb
...
...
@@ -636,6 +636,22 @@ class monitor_core_module {
/* both Disk are not working */
$state
=
$this
->
_setState
(
$state
,
'error'
);
}
if
(
strpos
(
$line
,
'[UU]'
)
!==
false
)
{
/* The disks are OK.
* if the next line starts with "[>" or "[=" then
* recovery (resync) is in state and the state is
* information instead of ok
*/
$nextLine
=
$tmp
[
$i
+
1
];
if
((
strpos
(
$nextLine
,
'[>'
)
===
false
)
&&
(
strpos
(
$nextLine
,
'[='
)
===
false
))
{
$state
=
$this
->
_setState
(
$state
,
'ok'
);
}
else
{
$state
=
$this
->
_setState
(
$state
,
'info'
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment