lockDevices() fixed parsing raids (linux)
This commit is contained in:
+1
-1
@@ -384,7 +384,7 @@ function decodeMdabmData(lines) {
|
||||
const raid = util.getValue(lines, 'md_level', '=');
|
||||
const members = [];
|
||||
lines.forEach(line => {
|
||||
if (line.toLowerCase().startsWith('md_device_ev') && line.toLowerCase().indexOf('/dev/') > 0) {
|
||||
if (line.toLowerCase().startsWith('md_device_dev') && line.toLowerCase().indexOf('/dev/') > 0) {
|
||||
members.push(line.split('/dev/')[1]);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user