blockDevices() added raid group member (linux)
This commit is contained in:
+1
-1
@@ -375,7 +375,7 @@ function raidMatchLunix(data) {
|
||||
if (element.type.startsWith('raid')) {
|
||||
const lines = execSync(`mdadm --export --detail /dev/${element.name}`).toString().split('\n');
|
||||
const mdData = decodeMdabmData(lines);
|
||||
if (mdData && mdData.members && mdData.members.length && mdData.raid === element.type) {
|
||||
if (mdData.members && mdData.members.length && mdData.raid === element.type) {
|
||||
result = result.map(blockdevice => {
|
||||
if (blockdevice.fsType === 'linux_raid_member' && mdData.members.indexOf(blockdevice.name) >= 0) {
|
||||
blockdevice.group = element.name;
|
||||
|
||||
Reference in New Issue
Block a user