blockDevices() added raid group member (linux)

This commit is contained in:
Sebastian Hildebrandt 2022-11-19 09:48:48 +01:00
parent b1b017a95f
commit 6c4e34004a
6 changed files with 20 additions and 2 deletions

View File

@ -81,6 +81,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.14.0 | 2022-11-10 | `blockDevices()` added raid group member (linux) |
| 5.13.5 | 2022-11-18 | `users()` fix parsing issue (windows) |
| 5.13.4 | 2022-11-18 | `users()` fix Get-CimInstance issue (windows) |
| 5.13.3 | 2022-11-18 | `cpuTemperature()` fix main temp (linux) |

View File

@ -112,6 +112,7 @@ si.cpu()
(last 7 major and minor version releases)
- Version 5.14.0: `blockDevices()` added raid group member (linux)
- Version 5.13.0: `networkConnections()` added process name (mac OS)
- Version 5.12.0: `cpu()` added performance and efficiency cores
- Version 5.11.0: `networkInterfaces()` added default property and default parameter
@ -464,6 +465,7 @@ Full function reference with examples can be found at [https://systeminformation
| | [0].serial | X | | | X | | serial |
| | [0].removable | X | | X | X | | serial |
| | [0].protocol | X | | X | | | protocol (SATA, PCI-Express, ...) |
| | [0].group | X | | | | | Raid group member (e.g. md1) |
| si.disksIO(cb) | {...} | X | | X | | | current transfer stats |
| | rIO | X | | X | | | read IOs on all mounted drives |
| | wIO | X | | X | | | write IOs on all mounted drives |

View File

@ -426,6 +426,16 @@ si.diskLayout().then(data => console.log(data));</code></pre class="example">
<td></td>
<td>protocol (SATA, PCI-Express, ...)</td>
</tr>
<tr>
<td></td>
<td>[0].group</td>
<td>X</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>Raid group member (e.g. md1)</td>
</tr>
<tr class="example">
<td></td>
<td colspan="7">

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.14.0</th>
<td>2022-11-19</td>
<td><span class="code">blockDevices()</span> added raid group (linux)</td>
</tr>
<tr>
<th scope="row">5.13.5</th>
<td>2022-11-18</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.13.5</span></div>
<div class="version">New Version: <span id="version">5.14.0</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -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;